Skip to content

Commit

Permalink
Merge pull request #124 from toddrob99/develop
Browse files Browse the repository at this point in the history
v1.6.2
  • Loading branch information
toddrob99 authored Jul 29, 2023
2 parents 78b2ae1 + 7adced4 commit 7813caa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions statsapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1477,8 +1477,9 @@ def standings_data(
for x in (
x
for x in y["teamRecords"]
if division.lower() == "all"
or division.lower() == x["team"]["division"]["abbreviation"].lower()
if str(division).lower() == "all"
or str(division).lower() == x["team"]["division"]["abbreviation"].lower()
or str(division) == str(x["team"]["division"]["id"])
):
if x["team"]["division"]["id"] not in divisions.keys():
divisions.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.6.1"
VERSION = "1.6.2"

0 comments on commit 7813caa

Please sign in to comment.