фикс4

This commit is contained in:
2026-05-16 13:52:53 +03:00
parent c970a9d755
commit 685fcdabef

View File

@@ -217,9 +217,9 @@ def fetch_match_live_data(match_id: int) -> dict:
live = soup.find("section", class_=lambda c: c and "game--live" in c)
if live:
return {"status": "live", "home_score": home, "away_score": away}
else:
if home and away:
return {"status": "finished", "home_score": home, "away_score": away}
# else:
# if home and away:
# return {"status": "finished", "home_score": home, "away_score": away}
return {"status": "scheduled", "home_score": home, "away_score": away}