Skip to content

Commit

Permalink
fix: Correctly identify ties in Team.outcomes
Browse files Browse the repository at this point in the history
  • Loading branch information
DesiPilla committed Sep 6, 2024
1 parent 428d155 commit 5ca6409
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 5ca6409

Please sign in to comment.