From 214ab84fc6af6ef5a14f9f5202c2bbe722da7bd7 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: Sat, 16 May 2026 12:40:14 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scheduler.py b/scheduler.py index 2850231..3aa0fa5 100644 --- a/scheduler.py +++ b/scheduler.py @@ -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} - else: + elif not live and home and 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'ОВ