Adds a new POST route `/admin/competition/edit` to update competition data in the database, including handling image uploads and preserving existing images. Updates `replit.md` and `templates/admin/competitions.html` to include UI elements and logic for editing competitions. Replit-Commit-Author: Agent Replit-Commit-Session-Id: cd9a7d26-a4e5-4215-975c-c59f4ed1f06d Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 5f81296b-a857-4536-9a1e-2ccf05671a10 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d0a1d46d-d203-4308-bc6a-312ac7c0243b/cd9a7d26-a4e5-4215-975c-c59f4ed1f06d/EU15Bjz
49 lines
751 B
Plaintext
49 lines
751 B
Plaintext
modules = ["web", "python-3.12", "postgresql-16"]
|
|
run = "python3 app.py"
|
|
|
|
[nix]
|
|
channel = "stable-24_05"
|
|
|
|
[deployment]
|
|
run = ["sh", "-c", "python3 app.py"]
|
|
deploymentTarget = "cloudrun"
|
|
|
|
[[ports]]
|
|
localPort = 5000
|
|
externalPort = 80
|
|
|
|
[[ports]]
|
|
localPort = 33703
|
|
externalPort = 3001
|
|
|
|
[[ports]]
|
|
localPort = 37833
|
|
externalPort = 3000
|
|
|
|
[agent]
|
|
expertMode = true
|
|
|
|
[workflows]
|
|
runButton = "Project"
|
|
|
|
[[workflows.workflow]]
|
|
name = "Project"
|
|
mode = "parallel"
|
|
author = "agent"
|
|
|
|
[[workflows.workflow.tasks]]
|
|
task = "workflow.run"
|
|
args = "Flask Server"
|
|
|
|
[[workflows.workflow]]
|
|
name = "Flask Server"
|
|
author = "agent"
|
|
|
|
[workflows.workflow.metadata]
|
|
outputType = "webview"
|
|
|
|
[[workflows.workflow.tasks]]
|
|
task = "shell.exec"
|
|
args = "python app.py"
|
|
waitForPort = 5000
|