From c4f2cb34da932ce3e5c3dad84ca8f70de6919842 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: Fri, 24 Apr 2026 21:40:10 +0300 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=20=D1=81=20=D1=84?= =?UTF-8?q?=D0=B8=D0=BD=D0=B8=D1=88=D0=B5=D0=BC=20=D0=BC=D0=B0=D1=82=D1=87?= =?UTF-8?q?=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scheduler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scheduler.py b/scheduler.py index 4b9ab90..60a2e25 100644 --- a/scheduler.py +++ b/scheduler.py @@ -217,8 +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} - elif not live and 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}