From 7f5df5b47b55ab17fd56f7026943f9cbec2af1fa Mon Sep 17 00:00:00 2001 From: Sakimori Date: Sat, 26 Dec 2020 21:21:43 -0500 Subject: [PATCH] fixed the math for extra innings --- the_prestige.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/the_prestige.py b/the_prestige.py index 64ec1b9..8fcc175 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -483,8 +483,8 @@ async def watch_game(channel, game): await asyncio.sleep(6) title_string = f"{newgame.teams['away'].name} at {newgame.teams['home'].name} ended after {newgame.inning} innings" - if newgame.inning > (newgame.max_innings - 1): #if extra innings - title_string += f" with {newgame.inning - (newgame.max_innings-1)} extra innings." + if (newgame.inning - 1) > newgame.max_innings: #if extra innings + title_string += f" with {newgame.inning - (newgame.max_innings+1)} extra innings." else: title_string += "."