From 656dd3a88ea1fe781c266d4d272d0084d35de79c Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Sun, 27 Apr 2025 20:06:10 -0500 Subject: [PATCH] Add detailed logging for NHL upcoming games detection to help diagnose display issues --- src/nhl_managers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nhl_managers.py b/src/nhl_managers.py index 9ecc7a00..b7695f8e 100644 --- a/src/nhl_managers.py +++ b/src/nhl_managers.py @@ -355,6 +355,8 @@ class BaseNHLManager: if status["type"]["state"] == "pre": cutoff_time = datetime.now(timezone.utc) + timedelta(hours=self.recent_hours) is_within_window = start_time_utc <= cutoff_time + self.logger.info(f"[NHL] Game time: {start_time_utc}, Cutoff time: {cutoff_time}, Within window: {is_within_window}") + self.logger.info(f"[NHL] Game status: {status['type']['state']}, Home: {home_team['team']['abbreviation']}, Away: {away_team['team']['abbreviation']}") else: # For recent games, check if the game is within the last 48 hours cutoff_time = datetime.now(timezone.utc) - timedelta(hours=self.recent_hours)