MLB-StatsAPI
MLB-StatsAPI copied to clipboard
Fix Schedule Bug
Updates:
-
Fixes bug in
schedule
function. As it stands, theschedule
function relies on ahydrate
parameter:
hydrate = (
"decisions,probablePitcher(note),linescore,broadcasts,game(content(media(epg)))"
)
However, usage shows that including game(content(media(epg)))
in the hydrate
parameter creates unreliable behavior on calls to the schedule
function, often leading to internal server errors from MLB's API:
The behavior appears to be stochastic, only occasionally resulting in a clean response from the MLB API.
However, removing game(content(media(epg)))
entirely from the hydrate
parameter appears to fix this issue.
-
Include
.idea
in.gitignore
. For those using pycharm IDE