Skip to content

Commit

Permalink
merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleyfay committed Dec 27, 2018
2 parents a9330f9 + 8f41351 commit 1711c08
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 30 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,19 @@ target/

#Markdown README
_README.md
<<<<<<< HEAD
/.idea
=======
#Jupyter Notebook Checkpoints
*.checkpoint.ipynb
docs/.ipynb_checkpoints/



.idea/
*.sublime-project
*.sublime-workspace



>>>>>>> master
30 changes: 0 additions & 30 deletions goldsberry/game/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,6 @@ def team_stats(self):
return self._get_table_from_data(self._data_tables, 1)


class boxscore_hustle(NbaDataProvider):
def __init__(self, gameid, **kwargs):
url_modifier = 'hustlestatsboxscore'
NbaDataProvider.__init__(self, url_modifier=url_modifier, GameID=gameid, **kwargs)

def player_stats(self):
return self._get_table_from_data(self._data_tables, 0)

def team_stats(self):
return self._get_table_from_data(self._data_tables, 1)


class boxscore_miscellaneous(NbaDataProvider):
def __init__(self, gameid, **kwargs):
url_modifier = 'boxscoremiscv2'
Expand Down Expand Up @@ -143,24 +131,6 @@ def _available_video(self):
return self._get_table_from_data(self._data_tables, 1)


class win_probability(NbaDataProvider):
def __init__(self, gameid, **kwargs):
url_modifier = 'winprobabilitypbp'
NbaDataProvider.__init__(self, url_modifier=url_modifier, GameID=gameid, RunType='each+second', **kwargs)

def win_probability(self):
return self._get_table_from_data(self._data_tables, 0)


class fan_duel_scores(NbaDataProvider):
def __init__(self, gameid, **kwargs):
url_modifier = 'infographicfanduelplayer'
NbaDataProvider.__init__(self, url_modifier=url_modifier, GameID=gameid, RunType='each+second', **kwargs)

def daily_fantasy(self):
return self._get_table_from_data(self._data_tables, 0)


# Courtesy of [email protected]
class GameIDs(NbaDataProvider):
def __init__(self, **kwargs):
Expand Down
8 changes: 8 additions & 0 deletions goldsberry/masterclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
# This library is different between python 2 and 3. This negates the difference
# noinspection PyCompatibility
from urllib.parse import urljoin
<<<<<<< HEAD
=======

>>>>>>> master

header_data = {
'Accept-Encoding': 'gzip, deflate, sdch',
Expand Down Expand Up @@ -51,6 +55,10 @@ def get_parameter_items(self):
@retrying.retry(stop_max_attempt_number=3, wait_fixed=1000,
retry_on_exception=lambda exception: isinstance(exception, _requests.ConnectionError))
def _get_nba_data(self, api_params):
<<<<<<< HEAD
=======

>>>>>>> master
pull_url = self.target_url
self._response = _requests.get(pull_url, params=api_params,
headers=header_data)
Expand Down
4 changes: 4 additions & 0 deletions goldsberry/player/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ def __init__(self, **kwargs):

def players(self):
return self._get_table_from_data(self._data_tables, 0)
<<<<<<< HEAD
=======

>>>>>>> master

# BLOCKED BY NBA
class shot_log(NbaDataProvider):
Expand Down

0 comments on commit 1711c08

Please sign in to comment.