Skip to content

Commit

Permalink
Fix is_postseason logic
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Oct 2, 2023
1 parent 13e33db commit 5af3185
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions renderers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,12 @@ def __draw_standings(self, cond: Callable[[], bool]):

self.canvas = self.matrix.SwapOnVSync(self.canvas)

if self.data.standings.is_postseason() and update % 20 == 0:
if self.standings_league == "NL":
self.standings_league = "AL"
else:
self.standings_league = "NL"
if self.data.standings.is_postseason():
if update % 20 == 0:
if self.standings_league == "NL":
self.standings_league = "AL"
else:
self.standings_league = "NL"
elif self.canvas.width == 32 and update % 5 == 0:
if self.standings_stat == "w":
self.standings_stat = "l"
Expand Down

0 comments on commit 5af3185

Please sign in to comment.