фикс 1
This commit is contained in:
@@ -217,10 +217,10 @@ def fetch_match_live_data(match_id: int) -> dict:
|
|||||||
live = soup.find("section", class_=lambda c: c and "game--live" in c)
|
live = soup.find("section", class_=lambda c: c and "game--live" in c)
|
||||||
if live:
|
if live:
|
||||||
return {"status": "live", "home_score": home, "away_score": away}
|
return {"status": "live", "home_score": home, "away_score": away}
|
||||||
else:
|
elif not live and home and away:
|
||||||
return {"status": "finished", "home_score": home, "away_score": away}
|
return {"status": "finished", "home_score": home, "away_score": away}
|
||||||
|
|
||||||
# return {"status": "scheduled", "home_score": home, "away_score": away}
|
return {"status": "finished", "home_score": home, "away_score": away}
|
||||||
|
|
||||||
# =========================================================
|
# =========================================================
|
||||||
# ЛОГИКА ЗАПУСКА WATCHER'ОВ
|
# ЛОГИКА ЗАПУСКА WATCHER'ОВ
|
||||||
|
|||||||
Reference in New Issue
Block a user