fixed the math for extra innings

This commit is contained in:
Sakimori 2020-12-26 21:21:43 -05:00
parent dbef439f76
commit 7f5df5b47b

View File

@ -483,8 +483,8 @@ async def watch_game(channel, game):
await asyncio.sleep(6) await asyncio.sleep(6)
title_string = f"{newgame.teams['away'].name} at {newgame.teams['home'].name} ended after {newgame.inning} innings" 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 if (newgame.inning - 1) > newgame.max_innings: #if extra innings
title_string += f" with {newgame.inning - (newgame.max_innings-1)} extra innings." title_string += f" with {newgame.inning - (newgame.max_innings+1)} extra innings."
else: else:
title_string += "." title_string += "."