mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 13:23:00 +00:00
turned off NBA board and adjusted NHL upcoming logic
This commit is contained in:
@@ -106,7 +106,7 @@
|
|||||||
"live_game_duration": 30
|
"live_game_duration": 30
|
||||||
},
|
},
|
||||||
"nba_scoreboard": {
|
"nba_scoreboard": {
|
||||||
"enabled": true,
|
"enabled": false,
|
||||||
"test_mode": false,
|
"test_mode": false,
|
||||||
"update_interval_seconds": 300,
|
"update_interval_seconds": 300,
|
||||||
"live_update_interval": 20,
|
"live_update_interval": 20,
|
||||||
|
|||||||
@@ -730,7 +730,8 @@ class NBARecentManager(BaseNBAManager):
|
|||||||
new_recent_games = []
|
new_recent_games = []
|
||||||
for event in events:
|
for event in events:
|
||||||
game = self._extract_game_details(event)
|
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)
|
new_recent_games.append(game)
|
||||||
|
|
||||||
# Filter for favorite teams
|
# Filter for favorite teams
|
||||||
|
|||||||
@@ -768,7 +768,7 @@ class NHLUpcomingManager(BaseNHLManager):
|
|||||||
new_upcoming_games = []
|
new_upcoming_games = []
|
||||||
for event in events:
|
for event in events:
|
||||||
game = self._extract_game_details(event)
|
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)
|
new_upcoming_games.append(game)
|
||||||
|
|
||||||
# Filter for favorite teams
|
# Filter for favorite teams
|
||||||
|
|||||||
Reference in New Issue
Block a user