Closed Laneville closed 2 years ago
Oops! Will release fix shortly.
Workaround: include sportIds parameter and set the value to "1"
(string).
statsapi.lookup_team("chn", sportIds="1")
[{'id': 112,
'name': 'Chicago Cubs',
'teamCode': 'chn',
'fileCode': 'chc',
'teamName': 'Cubs',
'locationName': 'Chicago',
'shortName': 'Chi Cubs'}]
Fixed in v1.5.1, should be available on pypi now.
Thanks for raising the issue, and sorry for the bonehead missed test case.
that was quick :) no no I appreciate the quick fix! Love what you've created with this project
Getting an error when running the lookup_team function. Looks like it's in the init py script on line 1221 where it's calling the latest_season function.