From de85b447f753c1be769f1dc0615ec2164bfa4fda Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Thu, 24 Apr 2025 15:57:47 -0500 Subject: [PATCH] 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 --- src/mlb_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mlb_manager.py b/src/mlb_manager.py index fccb8c02..9432a588 100644 --- a/src/mlb_manager.py +++ b/src/mlb_manager.py @@ -563,7 +563,7 @@ class MLBUpcomingManager(BaseMLBManager): logger.info(f"Game status: {game['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' logger.info(f"Within time window: {is_within_time}")