Skip to content

Commit

Permalink
Merge pull request #563 from cwendt94/fix_multiple_team_owners
Browse files Browse the repository at this point in the history
Fix Multiple Team Owners
  • Loading branch information
cwendt94 authored Sep 4, 2024
2 parents 1bcfdbf + 086d4dc commit 1f6515d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espn_api/base_league.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _fetch_teams(self, data, TeamClass, pro_schedule = None):

for team in teams:
roster = team_roster[team['id']]
owners = [member for member in members if member.get('id') == (team.get('owners') or [''])[0]]
owners = [member for member in members if member.get('id') in team.get('owners', [])]
self.teams.append(TeamClass(team, roster=roster, schedule=schedule, year=seasonId, owners=owners, pro_schedule=pro_schedule))

# sort by team ID
Expand Down

0 comments on commit 1f6515d

Please sign in to comment.