From 36fd848b621df0935bb9018bbac413d8d29cbf6c Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sun, 9 Mar 2025 13:07:09 -0500 Subject: [PATCH] Bug fix: pitchers auto-fatigue one out too late --- command_logic/logic_gameplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command_logic/logic_gameplay.py b/command_logic/logic_gameplay.py index e20b0fa..fc2f911 100644 --- a/command_logic/logic_gameplay.py +++ b/command_logic/logic_gameplay.py @@ -607,7 +607,7 @@ def complete_play(session:Session, this_play: Play): new_pitcher = get_one_lineup(session, this_play.game, new_pitcher_team, position='P') logger.info(f'Check for {new_pitcher.player.name} POW') outs = session.exec(select(func.sum(Play.outs)).where( - Play.game == this_play.game, Play.pitcher == new_pitcher, Play.complete == True + Play.game == this_play.game, Play.pitcher == new_pitcher )).one() if outs is None: outs = 0