diff --git a/espn_api/base_league.py b/espn_api/base_league.py index 7aea1477..ea456a6f 100644 --- a/espn_api/base_league.py +++ b/espn_api/base_league.py @@ -34,6 +34,9 @@ def _fetch_league(self, SettingsClass = BaseSettings): self.scoringPeriodId = data['scoringPeriodId'] self.firstScoringPeriod = data['status']['firstScoringPeriod'] self.finalScoringPeriod = data['status']['finalScoringPeriod'] + self.previousSeasons = [ + year for year in data["status"]["previousSeasons"] if year < self.year + ] if self.year < 2018: self.current_week = data['scoringPeriodId'] else: