From 441844ebed64f1ac9f60b166172be602df6a4c87 Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Thu, 24 Apr 2025 20:00:15 -0500 Subject: [PATCH] Add status_final to valid game statuses for MLB recent games --- src/mlb_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mlb_manager.py b/src/mlb_manager.py index 87d43350..0ccc10be 100644 --- a/src/mlb_manager.py +++ b/src/mlb_manager.py @@ -476,8 +476,8 @@ class MLBRecentManager(BaseMLBManager): logger.info(f"[MLB] Checking game: {game['away_team']} @ {game['home_team']} at {game_time}") logger.info(f"[MLB] Game status: {game['status']}") - # Accept more status types for recent games - is_final = game['status'] in ['final', 'completed', 'postponed', 'suspended'] + # Accept more status types for recent games, including status_final + is_final = game['status'] in ['final', 'completed', 'postponed', 'suspended', 'status_final'] is_within_time = recent_cutoff <= game_time <= now logger.info(f"[MLB] Is final: {is_final}")