(year, month, day)
return [nhl_api.game.GameScoreboard(data[x]) for x in data]
Return a list of games for a certain day.
Return a list of games for a certain day.
Return a list of games for a certain day .
def day(year, month, day):
    """
        Return a list of games for a certain day.
    """

    # get the days per month
    daysinmonth = calendar.monthrange(year, month)[1]
    # do not even try to get data if day is too high
    if daysinmonth < day:
        return []
    # get data
    data = nhl_api.game.scoreboard(year, month, day)
    return [nhl_api.game.GameScoreboard(data[x]) for x in data]
def day ( year , month , day ) : # get the days per month daysinmonth = calendar . monthrange ( year , month ) [ 1 ] # do not even try to get data if day is too high if daysinmonth < day : return [ ] # get data data = nhl_api . game . scoreboard ( year , month , day ) return [ nhl_api . game . GameScoreboard ( data [ x ] ) for x in data ]