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), }