Skip to content

Commit d79b681

Browse files
authored
Merge pull request #134 from toddrob99/develop
v1.7.1
2 parents 6a037e4 + 01fa3b2 commit d79b681

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

statsapi/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def schedule(
4848
opponent="",
4949
sportId=1,
5050
game_id=None,
51+
leagueId=None,
5152
):
5253
"""Get list of games for a given date/range and/or team/opponent."""
5354
if end_date and not start_date:
@@ -74,6 +75,9 @@ def schedule(
7475
if game_id:
7576
params.update({"gamePks": game_id})
7677

78+
if leagueId:
79+
params.update({"leagueId": leagueId})
80+
7781
hydrate = (
7882
"decisions,probablePitcher(note),linescore,broadcasts,game(content(media(epg)))"
7983
)
@@ -675,7 +679,7 @@ def boxscore_data(gamePk, timecode=None):
675679
battingNotes = [awayBattingNotes, homeBattingNotes]
676680
for i in range(0, len(sides)):
677681
for n in boxData[sides[i]]["note"]:
678-
awayBattingNotes.update(
682+
battingNotes[i].update(
679683
{len(battingNotes[i]): n["label"] + "-" + n["value"]}
680684
)
681685

statsapi/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env python
22

3-
VERSION = "1.7"
3+
VERSION = "1.7.1"

0 commit comments

Comments
 (0)