Skip to content

Commit

Permalink
Fix issue when a pitcher hasn't recorded an out yet (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
swemoney authored and ajbowler committed Mar 30, 2018
1 parent 441007f commit c0de8e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/pregame.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self, overview):
self.status = overview.status

try:
self.away_starter = ("{}. {} ({}-{} {:.2f} ERA)".format(
self.away_starter = ("{}. {} ({}-{} {} ERA)".format(
overview.away_probable_pitcher_first_name[0],
overview.away_probable_pitcher_last_name,
overview.away_probable_pitcher_wins,
Expand All @@ -23,7 +23,7 @@ def __init__(self, overview):
self.away_starter = 'TBD'

try:
self.home_starter = ("{}. {} ({}-{} {:.2f} ERA)".format(
self.home_starter = ("{}. {} ({}-{} {} ERA)".format(
overview.home_probable_pitcher_first_name[0],
overview.home_probable_pitcher_last_name,
overview.home_probable_pitcher_wins,
Expand Down

0 comments on commit c0de8e4

Please sign in to comment.