mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-12 05:42:59 +00:00
fix: Update NHLUpcomingManager to use correct attribute name (upcoming_games instead of games_list)
This commit is contained in:
@@ -778,7 +778,7 @@ class NHLUpcomingManager(BaseNHLManager):
|
|||||||
|
|
||||||
def display(self, force_clear=False):
|
def display(self, force_clear=False):
|
||||||
"""Display upcoming games."""
|
"""Display upcoming games."""
|
||||||
if not self.games_list:
|
if not self.upcoming_games:
|
||||||
self.logger.info("[NHL] No upcoming games to display")
|
self.logger.info("[NHL] No upcoming games to display")
|
||||||
self.display_manager.clear()
|
self.display_manager.clear()
|
||||||
return
|
return
|
||||||
@@ -791,8 +791,8 @@ class NHLUpcomingManager(BaseNHLManager):
|
|||||||
self.display_manager.update_display()
|
self.display_manager.update_display()
|
||||||
|
|
||||||
# Move to next game
|
# Move to next game
|
||||||
self.current_game_index = (self.current_game_index + 1) % len(self.games_list)
|
self.current_game_index = (self.current_game_index + 1) % len(self.upcoming_games)
|
||||||
self.current_game = self.games_list[self.current_game_index]
|
self.current_game = self.upcoming_games[self.current_game_index]
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.error(f"[NHL] Error displaying upcoming game: {e}", exc_info=True)
|
self.logger.error(f"[NHL] Error displaying upcoming game: {e}", exc_info=True)
|
||||||
Reference in New Issue
Block a user