We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78b2ae1 + 7adced4 commit 7813caaCopy full SHA for 7813caa
statsapi/__init__.py
@@ -1477,8 +1477,9 @@ def standings_data(
1477
for x in (
1478
x
1479
for x in y["teamRecords"]
1480
- if division.lower() == "all"
1481
- or division.lower() == x["team"]["division"]["abbreviation"].lower()
+ if str(division).lower() == "all"
+ or str(division).lower() == x["team"]["division"]["abbreviation"].lower()
1482
+ or str(division) == str(x["team"]["division"]["id"])
1483
):
1484
if x["team"]["division"]["id"] not in divisions.keys():
1485
divisions.update(
statsapi/version.py
@@ -1,3 +1,3 @@
1
#!/usr/bin/env python
2
3
-VERSION = "1.6.1"
+VERSION = "1.6.2"
0 commit comments