счет по четвертям в отображении

This commit is contained in:
2025-10-27 21:06:14 +03:00
parent 97045a0f72
commit 7e5ccdbb83
2 changed files with 2 additions and 5 deletions

View File

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

View File

@@ -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)]