Skip to content

Commit

Permalink
Merge pull request #34 from dblackrun/develop
Browse files Browse the repository at this point in the history
fix gleague url
  • Loading branch information
dblackrun committed Nov 13, 2021
2 parents 9870aae + cc1af0a commit 7dd145e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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


Expand All @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -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",
Expand Down

0 comments on commit 7dd145e

Please sign in to comment.