mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 13:23:00 +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
|
# Determine inning half from status information
|
||||||
inning_half = 'top' # Default to top
|
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'
|
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'
|
inning_half = 'top'
|
||||||
|
|
||||||
if is_favorite_game:
|
if is_favorite_game:
|
||||||
|
|||||||
Reference in New Issue
Block a user