Skip to content

Commit

Permalink
Basketball Box Score Winner Index Key
Browse files Browse the repository at this point in the history
  • Loading branch information
cwendt94 committed Jan 3, 2022
1 parent 6db1e03 commit 4fe5ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espn_api/basketball/box_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class BoxScore(object):
''' '''
def __init__(self, data, pro_schedule, by_matchup, year):
self.winner = data['winner']
self.winner = data.get('winner', 'UNDECIDED')
self.home_team = data['home']['teamId']
self.home_projected = -1 # week is over/not set
roster_key = 'rosterForMatchupPeriod' if by_matchup else 'rosterForCurrentScoringPeriod'
Expand Down

0 comments on commit 4fe5ead

Please sign in to comment.