cwendt94 / espn-api

ESPN Fantasy API! (Football, Basketball)
MIT License
614 stars 198 forks source link

Team Owner Names #451

Closed stinkyfi closed 1 year ago

stinkyfi commented 1 year ago

Sport

Football

Summary

The ability to display a teams name is convenient, it isn't as useful when a league has a long history.

I am a member of a league that has been playing for 15 years. Many of the teams have changed their names through that history. There is currently support for team_id, however I have discovered that this is not as consistent as desired. Team owners have left, and new ones have come in. Through the years the id 3 is used to represent 2 or more different owners.

Similar to how you would do

teams = league.teams
print(team.team_name)

it would be extremely helpful to have

teams = league.teams
print(team.owner_name)

owner_name is static, unlike team_name. Giving users the ability properly connect the data, and build cool things.

stinkyfi commented 1 year ago

After digging through the code, I discovered this exist. Apologies, I will close the issue.