mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
Fix inning half detection logic in MLB manager
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user