From 9fa68a165dd280f8217c3dc408aa36eab32f9fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AE=D1=80=D0=B8=D0=B9=20=D0=A7=D0=B5=D1=80=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Mon, 27 Oct 2025 18:01:04 +0300 Subject: [PATCH] test7 --- get_data_new.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get_data_new.py b/get_data_new.py index f01b246..aaeeb4b 100644 --- a/get_data_new.py +++ b/get_data_new.py @@ -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}")