From 7f4c9010c957f44600bbc7efbf2db504a252e67d Mon Sep 17 00:00:00 2001 From: UriAceves Date: Mon, 27 Mar 2017 11:33:30 -0600 Subject: [PATCH] Changing position to PlayerPosition in apy.py The API name changed from position to PlayerPosition, in order to cope with this change a minor modification was made on the file api.py, after that modification the tutorial works correctly. --- nbashots/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nbashots/api.py b/nbashots/api.py index 67d0942..bf57209 100644 --- a/nbashots/api.py +++ b/nbashots/api.py @@ -168,7 +168,7 @@ def __init__(self, player_id=0, team_id=0, league_id="00", season="2015-16", season_type="Regular Season", game_id="", outcome="", location="", month=0, season_segment="", date_from="", date_to="", opp_team_id=0, vs_conference="", vs_division="", - position="", rookie_year="", game_segment="", period=0, + PlayerPosition="", rookie_year="", game_segment="", period=0, last_n_games=0, clutch_time="", ahead_behind="", point_diff="", range_type="", start_period="", end_period="", start_range="", end_range="", context_filter="", context_measure="FGA"): @@ -194,7 +194,7 @@ def __init__(self, player_id=0, team_id=0, league_id="00", season="2015-16", "OpponentTeamID": opp_team_id, "VsConference": vs_conference, "VsDivision": vs_division, - "Position": position, + "PlayerPosition": PlayerPosition, "RookieYear": rookie_year, "GameSegment": game_segment, "Period": period,