cwendt94 / espn-api

ESPN Fantasy API! (Football, Basketball)
MIT License
544 stars 183 forks source link

'location' in data json doesn't exist anymore. Fix is provided #490

Closed noahcbradley closed 8 months ago

noahcbradley commented 8 months ago

Sport

Hockey

Summary

The 'location' tag in the json to describe your teams data does not exist anymore. The fix is to simply change line 13 in team.py to

self.team_name = data['name']

which was previously

self.team_name = "%s %s" % (data['location'], data['nickname']) .

This just describes your fantasy teams name. Easy fix!

Logs/Data

No response

noahcbradley commented 8 months ago

Submitting PR.

noahcbradley commented 8 months ago

Looks like this was recently fixed. Nvm. Can close this issue.