mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 05:13:01 +00:00
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:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user