Skip to content

Commit b26dff2

Browse files
authored
Merge pull request #208 from mppavese/mp-fix-get-stats
chore: corrects data type passed into split data method
2 parents 1e81253 + fcbf8cd commit b26dff2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

mlbstatsapi/mlb_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2255,7 +2255,7 @@ def get_stats(self, stats: list, groups: list, **params: dict) -> dict:
22552255
return {}
22562256

22572257
if 'stats' in mlb_data.data and mlb_data.data['stats']:
2258-
splits = mlb_module.create_split_data(mlb_data)
2258+
splits = mlb_module.create_split_data(mlb_data.data['stats'])
22592259
else:
22602260
return {}
22612261

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "python-mlb-statsapi"
7-
version = "0.5.18"
7+
version = "0.5.19"
88

99
authors = [
1010
{ name="Matthew Spah", email="spahmatthew@gmail.com" },

0 commit comments

Comments
 (0)