Skip to content

Commit

Permalink
Merge pull request #134 from toddrob99/develop
Browse files Browse the repository at this point in the history
v1.7.1
  • Loading branch information
toddrob99 authored Dec 18, 2023
2 parents 6a037e4 + 01fa3b2 commit d79b681
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion statsapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def schedule(
opponent="",
sportId=1,
game_id=None,
leagueId=None,
):
"""Get list of games for a given date/range and/or team/opponent."""
if end_date and not start_date:
Expand All @@ -74,6 +75,9 @@ def schedule(
if game_id:
params.update({"gamePks": game_id})

if leagueId:
params.update({"leagueId": leagueId})

hydrate = (
"decisions,probablePitcher(note),linescore,broadcasts,game(content(media(epg)))"
)
Expand Down Expand Up @@ -675,7 +679,7 @@ def boxscore_data(gamePk, timecode=None):
battingNotes = [awayBattingNotes, homeBattingNotes]
for i in range(0, len(sides)):
for n in boxData[sides[i]]["note"]:
awayBattingNotes.update(
battingNotes[i].update(
{len(battingNotes[i]): n["label"] + "-" + n["value"]}
)

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.7"
VERSION = "1.7.1"

0 comments on commit d79b681

Please sign in to comment.