Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ nba_api/library/debug/
.history/

# Built Visual Studio Code Extensions
*.vsix
*.vsix.DS_Store
12 changes: 12 additions & 0 deletions src/nba_api/stats/endpoints/playergamelogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
ShotClockRangeNullable,
ConferenceNullable,
DivisionNullable,
ISTRoundNullable,
PaceAdjustNullable,
PlusMinusNullable,
RankNullable,
)


Expand Down Expand Up @@ -118,6 +122,10 @@ def __init__(
team_id_nullable="",
vs_conference_nullable=ConferenceNullable.default,
vs_division_nullable=DivisionNullable.default,
ist_round_nullable=ISTRoundNullable.default,
pace_adjust_nullable=PaceAdjustNullable.default,
plus_minus_nullable=PlusMinusNullable.default,
rank_nullable=RankNullable.default,
proxy=None,
headers=None,
timeout=30,
Expand All @@ -131,17 +139,21 @@ def __init__(
"DateFrom": date_from_nullable,
"DateTo": date_to_nullable,
"GameSegment": game_segment_nullable,
"ISTRound": ist_round_nullable,
"LastNGames": last_n_games_nullable,
"LeagueID": league_id_nullable,
"Location": location_nullable,
"MeasureType": measure_type_player_game_logs_nullable,
"Month": month_nullable,
"OpponentTeamID": opp_team_id_nullable,
"Outcome": outcome_nullable,
"PaceAdjust": pace_adjust_nullable,
"PORound": po_round_nullable,
"PerMode": per_mode_simple_nullable,
"Period": period_nullable,
"PlayerID": player_id_nullable,
"PlusMinus": plus_minus_nullable,
"Rank": rank_nullable,
"Season": season_nullable,
"SeasonSegment": season_segment_nullable,
"SeasonType": season_type_nullable,
Expand Down
19 changes: 19 additions & 0 deletions src/nba_api/stats/library/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,13 @@ class Historical:
class HistoricalNullable(_NotRequired, Historical):
pass

class ISTRound(_NotRequired):
pass


class ISTRoundNullable(_NotRequired, ISTRound):
pass


class LastNGames:
def games(self, i):
Expand Down Expand Up @@ -390,6 +397,10 @@ class OutcomeNullable(_NotRequired, Outcome):
pass


class PaceAdjustNullable(_NotRequired, PaceAdjust):
pass


class PaceAdjust(_YesNo):
pass

Expand All @@ -406,6 +417,10 @@ class PlusMinusNo(_No):
pass


class PlusMinusNullable(_NotRequired, PlusMinus):
pass


class Period:
all = "0"

Expand Down Expand Up @@ -612,6 +627,10 @@ class RankNo(_No):
pass


class RankNullable(_NotRequired, Rank):
pass


class RunType:
default = "each second"

Expand Down