From 87c21ffe4e1b0f0c1c4754f4c738a7c7486d981a Mon Sep 17 00:00:00 2001 From: Christian Wendt Date: Thu, 12 Sep 2024 19:41:09 +0000 Subject: [PATCH] Football Fix Current Week Player Projected Points Stats --- espn_api/football/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espn_api/football/player.py b/espn_api/football/player.py index fb7c08f8..f49bb3df 100644 --- a/espn_api/football/player.py +++ b/espn_api/football/player.py @@ -31,7 +31,7 @@ def __init__(self, data, year): self.active_status = 'bye' player_stats = player.get('stats', []) for stats in player_stats: - if stats.get('seasonId') != year: + if stats.get('seasonId') != year or stats.get('statSplitTypeId') == 2: continue stats_breakdown = stats.get('stats') or stats.get('appliedStats', {}) breakdown = {PLAYER_STATS_MAP.get(int(k), k):v for (k,v) in stats_breakdown.items()}