test7
This commit is contained in:
@@ -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
|
Постоянно читает сырые api_*.json, собирает финальный state
|
||||||
@@ -1556,7 +1556,7 @@ def render_loop(stop_event: threading.Event, out_name: str = "ui_state"):
|
|||||||
Team_Both_Stat(state)
|
Team_Both_Stat(state)
|
||||||
Json_Team_Generation(state, who="team1")
|
Json_Team_Generation(state, who="team1")
|
||||||
Json_Team_Generation(state, who="team2")
|
Json_Team_Generation(state, who="team2")
|
||||||
atomic_write_json(state, out_name)
|
atomic_write_json(state, out_name["result"])
|
||||||
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
logger.exception(f"[RENDER_THREAD] error while building render state: {ex}")
|
logger.exception(f"[RENDER_THREAD] error while building render state: {ex}")
|
||||||
|
|||||||
Reference in New Issue
Block a user