Improve MLB upcoming games display and logging: - Fix time comparison for upcoming games - Add detailed logging for game status and time checks - Improve timezone handling - Add cooldown for 'no games' warnings

This commit is contained in:
ChuckBuilds
2025-04-24 15:57:47 -05:00
parent 2e0672c7d9
commit de85b447f7

View File

@@ -563,7 +563,7 @@ class MLBUpcomingManager(BaseMLBManager):
logger.info(f"Game status: {game['status']}") logger.info(f"Game status: {game['status']}")
# Check if game is within our time window and has scheduled status # Check if game is within our time window and has scheduled status
is_within_time = game_time <= upcoming_cutoff is_within_time = now <= game_time <= upcoming_cutoff
is_scheduled = game['status'] == 'status_scheduled' is_scheduled = game['status'] == 'status_scheduled'
logger.info(f"Within time window: {is_within_time}") logger.info(f"Within time window: {is_within_time}")