Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
cleaned debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
User Name committed Apr 18, 2024
1 parent f572f19 commit 257004a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ def refresh_games(self):
TODO:
Add the option to start the earliest game in the preferred game list but change to the top one as soon as it start.
"""

attempts_remaining = 5
while attempts_remaining > 0:
try:
Expand All @@ -313,16 +312,15 @@ def refresh_games(self):
team_info.next_game = ng
except:
pass
print("probe 2")

if self.config.preferred_teams_only and self.pref_teams:
self.games = self.pref_games
print("probe 3")

if not self.is_pref_team_offday() and self.config.live_mode:
#self.pref_games = prioritize_pref_games(self.pref_games, self.pref_teams)
self.check_all_pref_games_final()
# TODO: This shouldn't be needed to get the fact that your preferred team has a game today
self.check_game_priority()
print("probe 4")
self.network_issues = False
break

Expand All @@ -334,7 +332,6 @@ def refresh_games(self):
sleep(NETWORK_RETRY_SLEEP_TIME)

except IndexError as error_message:
print("probe 5")
debug.error(error_message)
debug.info("All preferred games are Final, showing the top preferred game")
#self.current_game_index = 0
Expand Down

0 comments on commit 257004a

Please sign in to comment.