MLB-StatsAPI icon indicating copy to clipboard operation
MLB-StatsAPI copied to clipboard

Fix Schedule Bug

Open elliottevans opened this issue 9 months ago • 2 comments

Updates:

  • Fixes bug in schedule function. As it stands, the schedule function relies on a hydrate 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:

image

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

elliottevans avatar Oct 15 '23 21:10 elliottevans