Skip to content

Commit

Permalink
Fix offday calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian authored Oct 7, 2024
1 parent e8f2829 commit 393afb7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions data/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ def is_offday_for_preferred_team(self):
return True

def is_offday(self):
if self.config.standings_no_games:
return not len(self.__all_games) # care about all MLB
else: # only care if we can't rotate a game
return not len(self._games)
return not len(self.__all_games) # care about all MLB

def games_live(self):
return any(status.is_fresh(g["status"]) or (status.is_live(g["status"])) for g in self._games)
Expand Down

0 comments on commit 393afb7

Please sign in to comment.