From 10baa5b2fba81ae75f0d847afbdac14532b66282 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:18:40 +0300 Subject: [PATCH] test10 --- visual.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/visual.py b/visual.py index 9f2f5a7..52913b6 100644 --- a/visual.py +++ b/visual.py @@ -465,7 +465,7 @@ cached_team_stats = st.session_state.get("team_stats") load_data_from_json("scores") cached_scores = st.session_state.get("scores") or [] # важно! -load_data_from_json("live_status") +load_data_from_json("api_live-status") cached_live_status = st.session_state.get("live_status") load_data_from_json("schedule") @@ -613,8 +613,8 @@ if isinstance(cached_game_online, dict): col5_1.metric("TimeOuts", len(timeout2)) if isinstance(cached_live_status, list) and cached_live_status: - foulsA = (cached_live_status[0] or {}).get("foulsA") - foulsB = (cached_live_status[0] or {}).get("foulsB") + foulsA = (cached_live_status["result"] or {}).get("foulsA") + foulsB = (cached_live_status["result"] or {}).get("foulsB") if foulsA is not None: col4_2.metric("Fouls", foulsA) if foulsB is not None: