diff --git a/nba_api/deployment/version b/nba_api/deployment/version index 867e524..cb174d5 100644 --- a/nba_api/deployment/version +++ b/nba_api/deployment/version @@ -1 +1 @@ -1.2.0 \ No newline at end of file +1.2.1 \ No newline at end of file diff --git a/nba_api/featurevec/feature_vector_calculator.py b/nba_api/featurevec/feature_vector_calculator.py index ed2e379..dc0553e 100644 --- a/nba_api/featurevec/feature_vector_calculator.py +++ b/nba_api/featurevec/feature_vector_calculator.py @@ -299,7 +299,9 @@ def is_team_home(team_ticker: str, game_id: str, season: str) -> bool: :return: A boolean representing if the team is the home team. """ team_game_log = get_season_games_for_team(team_ticker, season, False) - team_game_log.extend(get_season_games_for_team(team_ticker, season, True)) + if playoffs := get_season_games_for_team(team_ticker, season, True): + team_game_log.extend(playoffs) + for game in team_game_log: if game['game_id'] == game_id: return get_home_away_team(game['matchup'])['home_team'] == team_ticker