mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 21:33:00 +00:00
Disable test mode in NHL managers to use real game data
This commit is contained in:
@@ -24,7 +24,7 @@ class BaseNHLManager:
|
|||||||
self.config = config
|
self.config = config
|
||||||
self.nhl_config = config.get("nhl_scoreboard", {})
|
self.nhl_config = config.get("nhl_scoreboard", {})
|
||||||
self.is_enabled = self.nhl_config.get("enabled", False)
|
self.is_enabled = self.nhl_config.get("enabled", False)
|
||||||
self.test_mode = True # Force test mode to be enabled
|
self.test_mode = self.nhl_config.get("test_mode", False) # Use test_mode from config
|
||||||
self.logo_dir = self.nhl_config.get("logo_dir", "assets/sports/nhl_logos")
|
self.logo_dir = self.nhl_config.get("logo_dir", "assets/sports/nhl_logos")
|
||||||
self.update_interval = self.nhl_config.get("update_interval_seconds", 60)
|
self.update_interval = self.nhl_config.get("update_interval_seconds", 60)
|
||||||
self.last_update = 0
|
self.last_update = 0
|
||||||
@@ -640,7 +640,6 @@ class NHLUpcomingManager(BaseNHLManager):
|
|||||||
if next_team in team_games and team_games[next_team]:
|
if next_team in team_games and team_games[next_team]:
|
||||||
self.current_team_index = next_team_index
|
self.current_team_index = next_team_index
|
||||||
self.current_game = team_games[next_team][0]
|
self.current_game = team_games[next_team][0]
|
||||||
break
|
|
||||||
|
|
||||||
# If no next team has games, go back to the first team with games
|
# If no next team has games, go back to the first team with games
|
||||||
if not next_team or next_team not in team_games or not team_games[next_team]:
|
if not next_team or next_team not in team_games or not team_games[next_team]:
|
||||||
|
|||||||
Reference in New Issue
Block a user