toddrob99 / MLB-StatsAPI

Python wrapper for MLB Stats API
GNU General Public License v3.0
513 stars 98 forks source link

Add series_status to schedule #95

Closed WardBrian closed 1 year ago

WardBrian commented 1 year ago

This exposes the seriesStatus(result) field to the schedule() function. This is mainly useful during the postseason, but exists year-round.

Example:

>>> import statsapi
>>> # game which has finished
>>> print(statsapi.schedule()[0]['series_status'])
HOU leads 2-0
>>> # game which is scheduled
>>> print(statsapi.schedule('2022-10-14')[1]['series_status']) 
Series tied 1-1
toddrob99 commented 1 year ago

Thank you. Will include in next release.