Skip to content

game_highlight_data(gamePk) returns nothing for 2nd game of doubleheader #164

Description

@dalethealphamale

I am seeing an issue where if the gamePk is the 2nd game of a doubleheader, then statsapi.game_highlight_data(gamePk) returns nothing.

Some example 2nd games of doubleheaders from yesterday:

gamePK=778179
gamePK=778180

I think this happening because the schedule endpoint is returning multiple games and game_highlight_date(gamePk) is matching against the 1st game, instead of matching against the specific gamePk

Image

Note: game_highlights(gamePk) also returns nothing for 2nd games of doubleheaders, since it depends on game_highlight_data(gamePk)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions