Skip to content

Commit

Permalink
Merge pull request #309 from cwendt94/BB_BoxScoreWinner
Browse files Browse the repository at this point in the history
Basketball Box Score Winner Index Key
  • Loading branch information
cwendt94 authored Jan 7, 2022
2 parents df29340 + 4fe5ead commit 1059468
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 1059468

Please sign in to comment.