minor fixes to actually do something with agent availability
This commit is contained in:
parent
70c65fa178
commit
b8b21bad6b
3 changed files with 5 additions and 4 deletions
6
solve.py
6
solve.py
|
|
@ -130,10 +130,10 @@ AGENT_AVAILABILITY = {
|
|||
"baron": [],
|
||||
"prodigy": [],
|
||||
"provisioner": [],
|
||||
"metallurgist": [2, 3, 4, 5],
|
||||
"builder": [2, 3, 4],
|
||||
"metallurgist": [],
|
||||
"builder": [],
|
||||
"courier": [],
|
||||
"planner": [1, 2, 3, 4, 5],
|
||||
"planner": [],
|
||||
"fence": [],
|
||||
"foreman": [],
|
||||
"industrialist": [],
|
||||
|
|
|
|||
|
|
@ -193,7 +193,6 @@
|
|||
}
|
||||
|
||||
.output-section {
|
||||
display: none;
|
||||
margin-top: 30px;
|
||||
padding: 20px;
|
||||
background: #f5f5f5;
|
||||
|
|
|
|||
|
|
@ -109,6 +109,8 @@ def solve_handler():
|
|||
else:
|
||||
agent_availability[agent_name] = []
|
||||
|
||||
solve.AGENT_AVAILABILITY = agent_availability
|
||||
|
||||
# Parse time limit
|
||||
time_limit = float(data.get("time_limit", 60.0))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue