поправил отображение каналов на расписании тура, когда матч live, каналы не пишутся

This commit is contained in:
2026-05-15 15:02:20 +03:00
parent 79c679f35d
commit e671859f71
2 changed files with 3 additions and 3 deletions

View File

@@ -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)
if live:
return {"status": "live", "home_score": home, "away_score": away}
elif not live and home and away:
else:
return {"status": "finished", "home_score": home, "away_score": away}
return {"status": "scheduled", "home_score": home, "away_score": away}
# return {"status": "scheduled", "home_score": home, "away_score": away}
# =========================================================
# ЛОГИКА ЗАПУСКА WATCHER'ОВ