Skip to content

Commit

Permalink
Remove outdated docs from game_events
Browse files Browse the repository at this point in the history
  • Loading branch information
panzarino committed Aug 24, 2017
1 parent 18adf1e commit 6acc826
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions mlbgame/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,7 @@ def team_stats(game_id):


def game_events(game_id):
"""Return dictionary of game events for game matching the game id.
Top level of dictionary is inning of game.
Next level is top or bottom of the inning.
Final level is a list of at bats in that part of the inning.
Lowest level is AtBat object.
Ex. events['inningnumber']['top/bottom'][atbatnumber]
"""
"""Return dictionary of game events for game matching the game id."""
data = mlbgame.events.game_events(game_id)
return [mlbgame.events.Inning(data[x], x) for x in data]

Expand Down

0 comments on commit 6acc826

Please sign in to comment.