Skip to content

Commit e0612f0

Browse files
committed
fix: Attribute Error - Function: lookup_team #91
ver: 1.5.1
1 parent 6b3eb9b commit e0612f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

statsapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ def lookup_team(lookup_value, activeStatus="Y", season=None, sportIds=1):
12181218
"fields": "teams,id,name,teamCode,fileCode,teamName,locationName,shortName",
12191219
}
12201220
if not season:
1221-
season_data = latest_season(sportId=sportIds.split(",")[0])
1221+
season_data = latest_season(sportId=str(sportIds).split(",")[0])
12221222
season = season_data.get("seasonId", datetime.now().year)
12231223
params.update(
12241224
{

statsapi/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env python
22

3-
VERSION = "1.5"
3+
VERSION = "1.5.1"

0 commit comments

Comments
 (0)