Skip to content

Commit

Permalink
Merge pull request #208 from mppavese/mp-fix-get-stats
Browse files Browse the repository at this point in the history
chore: corrects data type passed into split data method
  • Loading branch information
KCNilssen authored Apr 18, 2024
2 parents 1e81253 + fcbf8cd commit b26dff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mlbstatsapi/mlb_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2255,7 +2255,7 @@ def get_stats(self, stats: list, groups: list, **params: dict) -> dict:
return {}

if 'stats' in mlb_data.data and mlb_data.data['stats']:
splits = mlb_module.create_split_data(mlb_data)
splits = mlb_module.create_split_data(mlb_data.data['stats'])
else:
return {}

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "python-mlb-statsapi"
version = "0.5.18"
version = "0.5.19"

authors = [
{ name="Matthew Spah", email="[email protected]" },
Expand Down

0 comments on commit b26dff2

Please sign in to comment.