From c0de8e4aaa39dbcb45f861eb14260825beb9a61f Mon Sep 17 00:00:00 2001 From: Steve Ehrenberg Date: Thu, 29 Mar 2018 23:06:41 -0500 Subject: [PATCH] Fix issue when a pitcher hasn't recorded an out yet (#100) --- data/pregame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/pregame.py b/data/pregame.py index 249f082e..026d2092 100644 --- a/data/pregame.py +++ b/data/pregame.py @@ -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, @@ -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,