diff --git a/espn_api/football/constant.py b/espn_api/football/constant.py index 3e946a38..72410ad2 100644 --- a/espn_api/football/constant.py +++ b/espn_api/football/constant.py @@ -98,6 +98,7 @@ 19: "passing2PtConversions", 20: "passingInterceptions", + 23: "rushingAttempts", 24: "rushingYards", 25: "rushingTouchdowns", 26: "rushing2PtConversions", @@ -106,6 +107,7 @@ 43: "receivingTouchdowns", 44: "receiving2PtConversions", 53: "receivingReceptions", + 58: "receivingTargets", 72: "lostFumbles", diff --git a/espn_api/football/player.py b/espn_api/football/player.py index 1f89f984..89816ae5 100644 --- a/espn_api/football/player.py +++ b/espn_api/football/player.py @@ -28,7 +28,7 @@ def __init__(self, data, year): for stats in player_stats: if stats.get('seasonId') != year: continue - stats_breakdown = stats.get('appliedStats') if stats.get('appliedStats') else stats.get('stats', {}) + stats_breakdown = stats.get('stats') if stats.get('stats') else stats.get('appliedStats', {}) breakdown = {PLAYER_STATS_MAP.get(int(k), k):v for (k,v) in stats_breakdown.items()} points = round(stats.get('appliedTotal', 0), 2) scoring_period = stats.get('scoringPeriodId')