Closed DesiPilla closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
cff22b5
) 80.57% compared to head (8f9a834
) 80.58%.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
An interesting note about ESPN's API on this matter:
Say you have a league that has been around since 2017.
previousSeasons
will return the expected result: [2017, 2018, 2019, 202, 2021, 2022]
, all the years prior to the current year.previousSeasons
will return the expected result: [2017, 2018, 2019, 2020, 2021]
, all the years prior to the given league year.[2017]
, but the API will return [2017, 2018, 2019, 2020, 2021]
instead.Updated the PR to only include seasons prior to the one being queried.
@cwendt94 this PR is ready to be merged.
Add a list of all previous seasons for a league. I know this is accurate for football leagues, and I assume(?) this is the same across all ESPN leagues and should be a part of the
BaseLeague
object.