mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-12 05:42:59 +00:00
Add status_final to valid game statuses for MLB recent games
This commit is contained in:
@@ -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] Checking game: {game['away_team']} @ {game['home_team']} at {game_time}")
|
||||||
logger.info(f"[MLB] Game status: {game['status']}")
|
logger.info(f"[MLB] Game status: {game['status']}")
|
||||||
|
|
||||||
# Accept more status types for recent games
|
# Accept more status types for recent games, including status_final
|
||||||
is_final = game['status'] in ['final', 'completed', 'postponed', 'suspended']
|
is_final = game['status'] in ['final', 'completed', 'postponed', 'suspended', 'status_final']
|
||||||
is_within_time = recent_cutoff <= game_time <= now
|
is_within_time = recent_cutoff <= game_time <= now
|
||||||
|
|
||||||
logger.info(f"[MLB] Is final: {is_final}")
|
logger.info(f"[MLB] Is final: {is_final}")
|
||||||
|
|||||||
Reference in New Issue
Block a user