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