mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
Fix inning extraction to use status period instead of linescore
This commit is contained in:
@@ -301,8 +301,7 @@ class BaseMLBManager:
|
||||
# Get game state information
|
||||
if status_state == 'in':
|
||||
# For live games, get detailed state
|
||||
linescore = event['competitions'][0].get('linescores', [{}])[0]
|
||||
inning = linescore.get('value', 1)
|
||||
inning = event['status'].get('period', 1) # Get inning from status period
|
||||
|
||||
# Get inning information from status
|
||||
status_detail = event['status'].get('detail', '').lower()
|
||||
|
||||
Reference in New Issue
Block a user