This commit is contained in:
2025-10-27 18:01:04 +03:00
parent ee58ad868d
commit 9fa68a165d

View File

@@ -1541,7 +1541,7 @@ def Team_Both_Stat(merged: dict, *, out_dir: str = "static") -> None:
def render_loop(stop_event: threading.Event, out_name: str = "ui_state"):
def render_loop(stop_event: threading.Event, out_name: str = "game"):
"""
Крутится в отдельном потоке.
Постоянно читает сырые api_*.json, собирает финальный state
@@ -1556,7 +1556,7 @@ def render_loop(stop_event: threading.Event, out_name: str = "ui_state"):
Team_Both_Stat(state)
Json_Team_Generation(state, who="team1")
Json_Team_Generation(state, who="team2")
atomic_write_json(state, out_name)
atomic_write_json(state, out_name["result"])
except Exception as ex:
logger.exception(f"[RENDER_THREAD] error while building render state: {ex}")