Fix MLB upcoming games status check to match API response

This commit is contained in:
ChuckBuilds
2025-04-24 15:53:31 -05:00
parent d89c952b0a
commit 2e0672c7d9

View File

@@ -562,14 +562,14 @@ class MLBUpcomingManager(BaseMLBManager):
logger.info(f"Checking game: {game['away_team']} @ {game['home_team']} at {game_time}")
logger.info(f"Game status: {game['status']}")
# Check if game is within our time window and has preview status
# Check if game is within our time window and has scheduled status
is_within_time = game_time <= upcoming_cutoff
is_preview = game['status'] == 'preview'
is_scheduled = game['status'] == 'status_scheduled'
logger.info(f"Within time window: {is_within_time}")
logger.info(f"Is preview status: {is_preview}")
logger.info(f"Is scheduled status: {is_scheduled}")
if is_preview and is_within_time:
if is_scheduled and is_within_time:
new_upcoming_games.append(game)
logger.info(f"Added game to upcoming list: {game['away_team']} @ {game['home_team']}")