Compare commits
No commits in common. "b8b21bad6bd08927576c3397db3b75e8fef822b2" and "5d75d80a87a77c08c032ea6425d8ee86efc829fb" have entirely different histories.
b8b21bad6b
...
5d75d80a87
4 changed files with 5 additions and 7 deletions
|
|
@ -4,11 +4,10 @@ services:
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "5555:5000"
|
- "5000:5000"
|
||||||
environment:
|
environment:
|
||||||
- FLASK_ENV=development
|
- FLASK_ENV=development
|
||||||
- FLASK_DEBUG=1
|
- FLASK_DEBUG=1
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
command: uv run python web_solve.py
|
command: uv run python web_solve.py
|
||||||
restart: unless-stopped
|
|
||||||
|
|
|
||||||
6
solve.py
6
solve.py
|
|
@ -130,10 +130,10 @@ AGENT_AVAILABILITY = {
|
||||||
"baron": [],
|
"baron": [],
|
||||||
"prodigy": [],
|
"prodigy": [],
|
||||||
"provisioner": [],
|
"provisioner": [],
|
||||||
"metallurgist": [],
|
"metallurgist": [2, 3, 4, 5],
|
||||||
"builder": [],
|
"builder": [2, 3, 4],
|
||||||
"courier": [],
|
"courier": [],
|
||||||
"planner": [],
|
"planner": [1, 2, 3, 4, 5],
|
||||||
"fence": [],
|
"fence": [],
|
||||||
"foreman": [],
|
"foreman": [],
|
||||||
"industrialist": [],
|
"industrialist": [],
|
||||||
|
|
|
||||||
|
|
@ -193,6 +193,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.output-section {
|
.output-section {
|
||||||
|
display: none;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background: #f5f5f5;
|
background: #f5f5f5;
|
||||||
|
|
|
||||||
|
|
@ -109,8 +109,6 @@ def solve_handler():
|
||||||
else:
|
else:
|
||||||
agent_availability[agent_name] = []
|
agent_availability[agent_name] = []
|
||||||
|
|
||||||
solve.AGENT_AVAILABILITY = agent_availability
|
|
||||||
|
|
||||||
# Parse time limit
|
# Parse time limit
|
||||||
time_limit = float(data.get("time_limit", 60.0))
|
time_limit = float(data.get("time_limit", 60.0))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue