Skip to content

Commit

Permalink
Merge pull request #572 from cwendt94/fix_fb_current_week_player_points
Browse files Browse the repository at this point in the history
Football Fix Current Week Player Projected Points Stats
  • Loading branch information
cwendt94 authored Sep 12, 2024
2 parents 7c314ce + 87c21ff commit 2329144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espn_api/football/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand Down

0 comments on commit 2329144

Please sign in to comment.