From dec9405b4d128632b2b6da072acce58c92b6e893 Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Sun, 27 Apr 2025 16:00:47 -0500 Subject: [PATCH] Fix inning half detection logic in MLB manager --- src/mlb_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mlb_manager.py b/src/mlb_manager.py index cd3ccb0b..2a1c6065 100644 --- a/src/mlb_manager.py +++ b/src/mlb_manager.py @@ -309,9 +309,9 @@ class BaseMLBManager: # Determine inning half from status information inning_half = 'top' # Default to top - if 'bottom' in status_detail or 'bottom' in status_short: + if any(x in status_detail.lower() for x in ['bottom', 'bot']): inning_half = 'bottom' - elif 'top' in status_detail or 'top' in status_short: + elif any(x in status_detail.lower() for x in ['top', 'mid']): inning_half = 'top' if is_favorite_game: