CFBD / cfbd-python

127 stars 19 forks source link

get_lines returning game 401636607 for all game IDs #12

Open jayspringfield opened 1 week ago

jayspringfield commented 1 week ago

Calling this:

api_response = cfbd_instance.get_lines(game_id = 401628328, year=2024) print(api_response[0])

Returns this:

{'away_conference': 'UAC', 'away_score': 0, 'away_team': 'Southern Utah', 'home_conference': 'Big 12', 'home_score': 49, 'home_team': 'Utah', 'id': 401636607, 'lines': [{'away_moneyline': None, 'formatted_spread': 'Utah -37.5', 'home_moneyline': None, 'over_under': 55.5, 'over_under_open': None, 'provider': 'ESPN Bet', 'spread': -37.5, 'spread_open': None}], 'season': 2024, 'season_type': 'regular', 'start_date': '2024-08-30T01:00:00.000Z', 'week': 1}

For any 2024 week1 game ID that I try.

jayspringfield commented 1 week ago

FWIW, I can get correct game results if I specify the year, week and a team. for instance:

api_response = cfbd_instance.get_lines(year=2024, week=1, team="west virginia")

returns

{'away_conference': 'Big Ten', 'away_score': 34, 'away_team': 'Penn State', 'home_conference': 'Big 12', 'home_score': 12, 'home_team': 'West Virginia', 'id': 401628457, 'lines': [{'away_moneyline': None, 'formatted_spread': 'Penn State -7.5', 'home_moneyline': None, 'over_under': 48.5, 'over_under_open': None, 'provider': 'ESPN Bet', 'spread': 7.5, 'spread_open': None}, {'away_moneyline': -290.0, 'formatted_spread': 'Penn State -10', 'home_moneyline': 235.0, 'over_under': 51.5, 'over_under_open': 51.0, 'provider': 'DraftKings', 'spread': 10.0, 'spread_open': 10.5}, {'away_moneyline': -380.0, 'formatted_spread': 'Penn State -7.5', 'home_moneyline': 290.0, 'over_under': 48.0, 'over_under_open': 51.0, 'provider': 'Bovada', 'spread': 7.5, 'spread_open': 10.0}], 'season': 2024, 'season_type': 'regular', 'start_date': '2024-08-31T16:00:00.000Z', 'week': 1}