Track a recipe under the top bar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-10-20 21:13:46 +01:00
parent 722cf0b382
commit a86594594a
5 changed files with 67 additions and 6 deletions

2
app.py
View file

@ -413,6 +413,8 @@ class Handler(BaseHTTPRequestHandler):
return game.buy_perk(player, str(body.get("perk")))
if path == "/api/pin":
return game.toggle_pin(player, str(body.get("skill")))
if path == "/api/track":
return game.toggle_track(player, str(body.get("id")))
if path == "/api/settings":
if body.get("overflow") not in ("city", "stop"):
return "Bad setting"