Skip to content

Commit

Permalink
Football Player Info Filtering Week 1
Browse files Browse the repository at this point in the history
  • Loading branch information
cwendt94 committed Jan 31, 2022
1 parent e8fe651 commit 6a3e13b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espn_api/football/league.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def player_info(self, name: str = None, playerId: int = None):
if playerId is None or isinstance(playerId, str):
return None
params = { 'view': 'kona_playercard' }
filters = {'players':{'filterIds':{'value':[playerId]}, 'filterStatsForTopScoringPeriodIds':{'value':16, "additionalValue":["00{}".format(self.year), "10{}".format(self.year)]}}}
filters = {'players':{'filterIds':{'value':[playerId]}, 'filterStatsForTopScoringPeriodIds':{'value':17, "additionalValue":["00{}".format(self.year), "10{}".format(self.year)]}}}
headers = {'x-fantasy-filter': json.dumps(filters)}

data = self.espn_request.league_get(params=params, headers=headers)
Expand Down

0 comments on commit 6a3e13b

Please sign in to comment.