Skip to content

Commit f227bf8

Browse files
authored
Merge pull request #226 from mjstamper/master
New Feature: Added previous_season to the Season Parameter
2 parents 038e42d + 5d32b68 commit f227bf8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nba_api/stats/library/parameters.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,10 @@ class SeasonYearNullable(_NotRequired, SeasonYear):
612612
class Season(SeasonYear):
613613
current_season_year = SeasonYear.current_season_year
614614
current_season = '{}-{}'.format(current_season_year, str(current_season_year + 1)[2:])
615-
615+
616+
#get last Season
617+
previous_season = '{}-{}'.format(current_season_year-1, str(current_season_year)[2:])
618+
616619
default = current_season
617620

618621

0 commit comments

Comments
 (0)