From 23fd83fbfc29b76e4731bc27728e6efa2d3c44fe Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Mon, 21 Apr 2025 14:08:07 -0500 Subject: [PATCH] Reorder display modes to place calendar after stock_news --- src/display_controller.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/display_controller.py b/src/display_controller.py index 32d255aa..b8d77803 100644 --- a/src/display_controller.py +++ b/src/display_controller.py @@ -361,6 +361,12 @@ class DisplayController: elif self.current_display_mode == 'stocks' and self.stocks: self.stocks.display_stocks(force_clear=self.force_clear) + elif self.current_display_mode == 'stock_news' and self.news: + self.news.display_news() + + elif self.current_display_mode == 'calendar' and self.calendar: + self.calendar.display() + elif self.current_display_mode == 'nhl_recent' and self.nhl_recent: self.nhl_recent.display(force_clear=self.force_clear) elif self.current_display_mode == 'nhl_upcoming' and self.nhl_upcoming: @@ -371,12 +377,6 @@ class DisplayController: elif self.current_display_mode == 'nba_upcoming' and self.nba_upcoming: self.nba_upcoming.display(force_clear=self.force_clear) - elif self.current_display_mode == 'stock_news' and self.news: - self.news.display_news() - - elif self.current_display_mode == 'calendar' and self.calendar: - self.calendar.display() - except Exception as e: logger.error(f"Error updating display for mode {self.current_display_mode}: {e}", exc_info=True) continue