Skip to content

Commit

Permalink
fix: Attribute Error - Function: lookup_team #91
Browse files Browse the repository at this point in the history
ver: 1.5.1
  • Loading branch information
toddrob99 committed Aug 13, 2022
1 parent 6b3eb9b commit e0612f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion statsapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ def lookup_team(lookup_value, activeStatus="Y", season=None, sportIds=1):
"fields": "teams,id,name,teamCode,fileCode,teamName,locationName,shortName",
}
if not season:
season_data = latest_season(sportId=sportIds.split(",")[0])
season_data = latest_season(sportId=str(sportIds).split(",")[0])
season = season_data.get("seasonId", datetime.now().year)
params.update(
{
Expand Down
2 changes: 1 addition & 1 deletion statsapi/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env python

VERSION = "1.5"
VERSION = "1.5.1"

0 comments on commit e0612f0

Please sign in to comment.