Skip to content

Commit

Permalink
Merge pull request #559 from MLB-LED-Scoreboard/fix/offday
Browse files Browse the repository at this point in the history
Fix offday calculation
  • Loading branch information
ty-porter authored Nov 5, 2024
2 parents 5dcedac + 393afb7 commit 66ce2a8
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 66ce2a8

Please sign in to comment.