счет по четвертям в отображении
This commit is contained in:
@@ -794,7 +794,7 @@ def render_once_after_game(
|
||||
try:
|
||||
logger.info(f"[RENDER_ONCE] Fetching final game snapshot for game_id={game_id}")
|
||||
# === 1. один запрос к API (ручка "game") ===
|
||||
fetch_api_data(
|
||||
state = fetch_api_data(
|
||||
session,
|
||||
"game",
|
||||
host=HOST,
|
||||
@@ -802,9 +802,6 @@ def render_once_after_game(
|
||||
lang=lang,
|
||||
)
|
||||
|
||||
# === 2. собрать state из свежего api_game.json ===
|
||||
state = build_render_state()
|
||||
|
||||
# === 3. прогнать вычисления как в render_loop ===
|
||||
Team_Both_Stat(state)
|
||||
Json_Team_Generation(state, who="team1")
|
||||
|
||||
@@ -616,7 +616,7 @@ if isinstance(cached_game_online, dict):
|
||||
|
||||
|
||||
if isinstance(cached_game_online, dict) and (
|
||||
(cached_game_online.get("result") or {}).get("plays") or []
|
||||
cached_game_online.get("plays") or []
|
||||
):
|
||||
col_1_col = [f"col_1_{i}" for i in range(1, period_max + 1)]
|
||||
col_2_col = [f"col_2_{i}" for i in range(1, period_max + 1)]
|
||||
|
||||
Reference in New Issue
Block a user