Properly identify delayed games in-progress
Had to wait for an in-progress game to be delayed to see the API return to properly catch this.
This commit is contained in:
parent
11db5baca6
commit
157f0f57c8
@ -258,6 +258,9 @@ class MLB(ScoresBackend):
|
||||
if ret['status'] == 'delayed_start':
|
||||
ret['status'] = 'pregame'
|
||||
ret['delay'] = game.get('reason', 'Unknown')
|
||||
elif ret['status'] == 'delayed':
|
||||
ret['status'] = 'in_progress'
|
||||
ret['delay'] = game.get('reason', 'Unknown')
|
||||
elif ret['status'] == 'postponed':
|
||||
ret['postponed'] = game.get('reason', 'Unknown Reason')
|
||||
elif ret['status'] == 'game_over':
|
||||
|
Loading…
Reference in New Issue
Block a user