diff --git a/pbpstats/data_loader/data_nba/boxscore/web.py b/pbpstats/data_loader/data_nba/boxscore/web.py index 35389b8..5b7ef0f 100644 --- a/pbpstats/data_loader/data_nba/boxscore/web.py +++ b/pbpstats/data_loader/data_nba/boxscore/web.py @@ -1,7 +1,7 @@ import json import os -from pbpstats import NBA_STRING, G_LEAGUE_STRING +from pbpstats import NBA_STRING, D_LEAGUE_STRING from pbpstats.data_loader.data_nba.web_loader import DataNbaWebLoader @@ -20,7 +20,7 @@ def __init__(self, file_directory=None): def load_data(self, game_id): self.game_id = game_id - league_url_part = NBA_STRING if self.league == G_LEAGUE_STRING else self.league + league_url_part = NBA_STRING if self.league == D_LEAGUE_STRING else self.league self.url = f"http://data.{league_url_part}.com/data/v2015/json/mobile_teams/{self.league}/{self.season}/scores/gamedetail/{self.game_id}_gamedetail.json" return self._load_request_data() diff --git a/setup.py b/setup.py index 5c7f08d..2773f7c 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="pbpstats", - version="1.3.2", + version="1.3.3", author="Darryl Blackport", author_email="darryl.blackport@gmail.com", description="A package to scrape and parse NBA, WNBA and G-League play-by-play data",