turned off NBA board and adjusted NHL upcoming logic

This commit is contained in:
ChuckBuilds
2025-04-25 21:19:25 -05:00
parent 184bd720d4
commit 14a196ef58
3 changed files with 4 additions and 3 deletions

View File

@@ -106,7 +106,7 @@
"live_game_duration": 30
},
"nba_scoreboard": {
"enabled": true,
"enabled": false,
"test_mode": false,
"update_interval_seconds": 300,
"live_update_interval": 20,

View File

@@ -730,7 +730,8 @@ class NBARecentManager(BaseNBAManager):
new_recent_games = []
for event in events:
game = self._extract_game_details(event)
if game:
# Filter for recent games: must be final and within the time window
if game and game['is_final'] and game['is_within_window']:
new_recent_games.append(game)
# Filter for favorite teams

View File

@@ -768,7 +768,7 @@ class NHLUpcomingManager(BaseNHLManager):
new_upcoming_games = []
for event in events:
game = self._extract_game_details(event)
if game and not game['is_final'] and game['is_within_window']:
if game and not game['is_final'] and game['is_upcoming']:
new_upcoming_games.append(game)
# Filter for favorite teams