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