From 6a3e13b3e38fd337ab6e01a663d2d5c27eafeb59 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 31 Jan 2022 13:47:17 -0800 Subject: [PATCH] Football Player Info Filtering Week 1 --- espn_api/football/league.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espn_api/football/league.py b/espn_api/football/league.py index a2dc6f1a..52328bba 100644 --- a/espn_api/football/league.py +++ b/espn_api/football/league.py @@ -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)