diff --git a/scoreboard.py b/scoreboard.py index d9029d8..135b7d2 100644 --- a/scoreboard.py +++ b/scoreboard.py @@ -401,7 +401,7 @@ def run(): print(show_preferred, show_cycle, current_preferred_game, len(preferred_games)) if show_preferred == True and len(preferred_games) > 0: current_preferred_game += 1 - if current_preferred_game >= len(preferred_games) - 1: + if current_preferred_game > len(preferred_games) - 1: show_preferred = False show_cycle = True current_preferred_game -= 1 @@ -413,7 +413,7 @@ def run(): elif show_cycle == True: current_page = (current_page + 4) % max(len(games), 1) - if current_page >= all_games_max_page: + if current_page > all_games_max_page: if len(preferred_games) > 0: show_preferred = True show_cycle = False