Skip to content

Commit

Permalink
Fix team.owners
Browse files Browse the repository at this point in the history
syntax after updating ESPN API.
  • Loading branch information
Kjeldgaard committed Sep 10, 2024
1 parent 2a26644 commit 802e191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fantasy_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def get_league_overview(self):
team_info.append(team.points_for)
team_info.append(team.points_against)
team_info.append(team.acquisitions)
owners = [self._team_owner_map[owner] for owner in team.owners]
owners = [self._team_owner_map[owner.get('id')] for owner in team.owners]
team_info.append(", ".join(owners))
league_overview.extend([team_info])

Expand Down

0 comments on commit 802e191

Please sign in to comment.