Skip to content

Commit 7813caa

Browse files
authored
Merge pull request #124 from toddrob99/develop
v1.6.2
2 parents 78b2ae1 + 7adced4 commit 7813caa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

statsapi/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,8 +1477,9 @@ def standings_data(
14771477
for x in (
14781478
x
14791479
for x in y["teamRecords"]
1480-
if division.lower() == "all"
1481-
or division.lower() == x["team"]["division"]["abbreviation"].lower()
1480+
if str(division).lower() == "all"
1481+
or str(division).lower() == x["team"]["division"]["abbreviation"].lower()
1482+
or str(division) == str(x["team"]["division"]["id"])
14821483
):
14831484
if x["team"]["division"]["id"] not in divisions.keys():
14841485
divisions.update(

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.6.1"
3+
VERSION = "1.6.2"

0 commit comments

Comments
 (0)