From a734bde81d4e6f4f9f56133b34b780b0b573bf42 Mon Sep 17 00:00:00 2001 From: Jiri Kalvoda Date: Fri, 23 Sep 2022 00:04:28 +0200 Subject: [PATCH] =?UTF-8?q?Strategick=C3=A1:=20Roz=C5=A1=C3=AD=C5=99en?= =?UTF-8?q?=C3=AD=20api=20o=20po=C4=8Det=20vstupu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- obsazovani.md | 1 + server/hra/web/api.py | 1 + 2 files changed, 2 insertions(+) diff --git a/obsazovani.md b/obsazovani.md index b4092f3..f60b9e4 100644 --- a/obsazovani.md +++ b/obsazovani.md @@ -30,6 +30,7 @@ GET na `/api/state?game=&token=&min_round=` status: "ok" round: # Kolikáté je aktuální kolo (na počátku 0) team_id: + teams_count: time_to_response: # None v případě, že ho neznáme state: { diff --git a/server/hra/web/api.py b/server/hra/web/api.py index c81adf6..a0621a6 100644 --- a/server/hra/web/api.py +++ b/server/hra/web/api.py @@ -101,6 +101,7 @@ def api_state(): "status": "ok", "round": state.round, "team_id": team_id, + "teams_count": game.teams_count, "time_to_response": time_to_end, "state": game.get_logic().personalize_state(state.get_state(), team_id, state.round), }