panzarino/mlbgame

ValueError: Could not find a game with that id.

Open

#52 ouverte le 17 janv. 2018

Voir sur GitHub
 (21 commentaires) (0 réactions) (0 assignés)Python (116 forks)batch import
bugenhancementhelp wanted

Métriques du dépôt

Stars
 (509 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Running the same code as before:

def team_games(year,month):
    month = mlbgame.games(year, month)
    games = mlbgame.combine_games(month)
    for game in games:
        print game.game_id
    return games


games = team_games(2016, 5)


and its breaking on random game ids when iterating through.

This one in particular breaks:

stats = mlbgame.team_stats('2016_05_16_bosmlb_kcamlb_1')
era = stats.home_pitching.era
print(era)

Status is also FINAL

Guide contributeur