Skip to content

Commit

Permalink
Merge pull request #567 from DesiPilla/fix-ties-bug
Browse files Browse the repository at this point in the history
Fix ties bug
  • Loading branch information
cwendt94 authored Sep 9, 2024
2 parents c2bbc7d + 39cdaaa commit ee0ba49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions espn_api/football/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def _fetch_schedule(self, data):
def _get_winner(self, winner: str, is_away: bool) -> str:
if winner == 'UNDECIDED':
return 'U'
elif winner == 'TIE':
return 'T'
elif (is_away and winner == 'AWAY') or (not is_away and winner == 'HOME'):
return 'W'
else:
Expand Down

0 comments on commit ee0ba49

Please sign in to comment.