Queue: swap #1 with the current make
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
fa960e1d6c
commit
3d93fabbfd
4 changed files with 43 additions and 1 deletions
3
app.py
3
app.py
|
|
@ -376,6 +376,9 @@ class Handler(BaseHTTPRequestHandler):
|
|||
if path == "/api/queue/move":
|
||||
index, to = body.get("index"), body.get("to")
|
||||
return game.queue_move(player, index, to) if isinstance(index, int) and isinstance(to, int) else "Not in the queue"
|
||||
if path == "/api/queue/now":
|
||||
index = body.get("index")
|
||||
return game.queue_now(world, player, index, now) if isinstance(index, int) else "Not in the queue"
|
||||
if path == "/api/queue/set":
|
||||
index, qty = body.get("index"), body.get("qty")
|
||||
if not isinstance(index, int) or not isinstance(qty, int):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue