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 6.1.3 #440

Merged
merged 3 commits into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion data/scoreboard/pitches.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ def __init__(self, game: Game):
def __str__(self) -> str:
return (
f"Count: {self.balls} - {self.strikes}. "
+ f"Last pitch: {self.last_pitch_speed}mph {self.last_pitch_type} {self.last_pitch_long} "
+ f"Last pitch: {self.last_pitch_speed}mph {self.last_pitch_type} {self.last_pitch_type_long} "
+ f" Total pitches: {self.pitch_count}"
)
2 changes: 1 addition & 1 deletion renderers/games/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def __render_pitch_text(canvas, layout, colors, pitches: Pitches):
mph = "mph "
if coords["desc_length"] == "Long":
pitch_text = str(pitches.last_pitch_speed) + mph + pitches.last_pitch_type_long
elif ["desc_length"] == "Short":
elif coords["desc_length"] == "Short":
pitch_text = str(pitches.last_pitch_speed) + mph + pitches.last_pitch_type
else:
pitch_text = ""
Expand Down