Skip to content

Commit

Permalink
Add ability to get overview
Browse files Browse the repository at this point in the history
  • Loading branch information
panzarino committed Jul 19, 2016
1 parent acb858f commit e863b95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mlbgame/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,8 @@ def game_events(game_id):
for i in data[x][y]:
output[x][y].append(mlbgame.events.AtBat(i))
return output

def overview(game_id):
"""Return Overview objec that contains game information."""
data = mlbgame.game.overview(game_id)
return mlbgame.game.Overview(data)

0 comments on commit e863b95

Please sign in to comment.