Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v6.5.1 #501

Merged
merged 4 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions data/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
INSTANT_REPLAY = "Instant Replay" # Live
MANAGER_CHALLENGE = "Manager challenge" # Live
MANAGER_CHALLENGE_CATCHDROP_IN_OUTFIELD = "Manager challenge: Catch/drop in outfield" # Live
MANAGER_CHALLENGE_CATCHERS_INTERFERENCE = "Manager challenge: Catchers Interference" # Live
MANAGER_CHALLENGE_CLOSE_PLAY_AT_1ST = "Manager challenge: Close play at 1st" # Live
MANAGER_CHALLENGE_FAIRFOUL_IN_OUTFIELD = "Manager challenge: Fair/foul in outfield" # Live
MANAGER_CHALLENGE_FAN_INTERFERENCE = "Manager challenge: Fan interference" # Live
Expand Down Expand Up @@ -157,6 +158,8 @@
UMPIRE_REVIEW_TOUCHING_A_BASE = "Umpire review: Touching a base" # Live
UMPIRE_REVIEW_TRAP_PLAY_IN_OUTFIELD = "Umpire review: Trap play in outfield" # Live
UMPIRE_REVIEW_SHIFT_VIOLATION = "Umpire review: Def Shift Violation" # Live
UMPIRE_CHALLENGE_PITCH_RESULT = "Umpire Challenge: Pitch Result" # Live
PLAYER_CHALLENGE_PITCH_RESULT = "Player challenge: Pitch Result" # Live
UNKNOWN = "Unknown" # Other
WARMUP = "Warmup" # Live
WRITING = "Writing" # Other
Expand All @@ -170,6 +173,7 @@
INSTANT_REPLAY,
MANAGER_CHALLENGE,
MANAGER_CHALLENGE_CATCHDROP_IN_OUTFIELD,
MANAGER_CHALLENGE_CATCHERS_INTERFERENCE,
MANAGER_CHALLENGE_CLOSE_PLAY_AT_1ST,
MANAGER_CHALLENGE_FAIRFOUL_IN_OUTFIELD,
MANAGER_CHALLENGE_FAN_INTERFERENCE,
Expand Down Expand Up @@ -211,6 +215,8 @@
UMPIRE_REVIEW_TOUCHING_A_BASE,
UMPIRE_REVIEW_TRAP_PLAY_IN_OUTFIELD,
UMPIRE_REVIEW_SHIFT_VIOLATION,
UMPIRE_CHALLENGE_PITCH_RESULT,
PLAYER_CHALLENGE_PITCH_RESULT,
]

GAME_STATE_PREGAME = [SCHEDULED, PREGAME, WARMUP]
Expand Down Expand Up @@ -300,6 +306,7 @@
FORFEIT_WILLFUL_RULE_VIOLATION,
MANAGER_CHALLENGE,
MANAGER_CHALLENGE_CATCHDROP_IN_OUTFIELD,
MANAGER_CHALLENGE_CATCHERS_INTERFERENCE,
MANAGER_CHALLENGE_CLOSE_PLAY_AT_1ST,
MANAGER_CHALLENGE_FAIRFOUL_IN_OUTFIELD,
MANAGER_CHALLENGE_FAN_INTERFERENCE,
Expand Down Expand Up @@ -371,6 +378,8 @@
UMPIRE_REVIEW_TOUCHING_A_BASE,
UMPIRE_REVIEW_TRAP_PLAY_IN_OUTFIELD,
UMPIRE_REVIEW_SHIFT_VIOLATION,
UMPIRE_CHALLENGE_PITCH_RESULT,
PLAYER_CHALLENGE_PITCH_RESULT,
WRITING,
UNKNOWN,
]
Expand Down
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
Loading