From c970a9d755246944095aef6680b6981a8e631228 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 13:16:08 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=813?= 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 11fb157..53b68ba 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}