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()}