Skip to content

Commit

Permalink
Injured boolean status
Browse files Browse the repository at this point in the history
  • Loading branch information
cwendt94 committed Sep 22, 2020
1 parent 540d516 commit c014d1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions espn_api/football/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def __init__(self, data):
# set each scoring period stat
player = data['playerPoolEntry']['player'] if 'playerPoolEntry' in data else data['player']
self.injuryStatus = player.get('injuryStatus', self.injuryStatus)
self.injured = player.get('injured', False)

player_stats = player.get('stats')
for stats in player_stats:
Expand Down

0 comments on commit c014d1a

Please sign in to comment.