This commit is contained in:
2025-10-27 18:18:40 +03:00
parent 6a06d54aa4
commit 10baa5b2fb

View File

@@ -465,7 +465,7 @@ cached_team_stats = st.session_state.get("team_stats")
load_data_from_json("scores") load_data_from_json("scores")
cached_scores = st.session_state.get("scores") or [] # важно! 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") cached_live_status = st.session_state.get("live_status")
load_data_from_json("schedule") load_data_from_json("schedule")
@@ -613,8 +613,8 @@ if isinstance(cached_game_online, dict):
col5_1.metric("TimeOuts", len(timeout2)) col5_1.metric("TimeOuts", len(timeout2))
if isinstance(cached_live_status, list) and cached_live_status: if isinstance(cached_live_status, list) and cached_live_status:
foulsA = (cached_live_status[0] or {}).get("foulsA") foulsA = (cached_live_status["result"] or {}).get("foulsA")
foulsB = (cached_live_status[0] or {}).get("foulsB") foulsB = (cached_live_status["result"] or {}).get("foulsB")
if foulsA is not None: if foulsA is not None:
col4_2.metric("Fouls", foulsA) col4_2.metric("Fouls", foulsA)
if foulsB is not None: if foulsB is not None: