diff --git a/espn_api/baseball/matchup.py b/espn_api/baseball/matchup.py index 24709951..2144155d 100644 --- a/espn_api/baseball/matchup.py +++ b/espn_api/baseball/matchup.py @@ -28,8 +28,6 @@ def _fetch_matchup_info(self, data): self.away_team = data['away']['teamId'] self.away_final_score = data['away']['totalPoints'] self.winner = data['winner'] - self.home_team_cats = None - self.away_team_cats = None # if stats are available if 'cumulativeScore' in data['home'].keys() and data['home']['cumulativeScore']['scoreByStat']: @@ -38,10 +36,3 @@ def _fetch_matchup_info(self, data): data['home']['cumulativeScore']['ties']/2) self.away_team_live_score = (data['away']['cumulativeScore']['wins'] + data['away']['cumulativeScore']['ties']/2) - - self.home_team_cats = { STATS_MAP[i]: {'score': data['home']['cumulativeScore']['scoreByStat'][i]['score'], - 'result': data['home']['cumulativeScore']['scoreByStat'][i]['result']} for i in data['home']['cumulativeScore']['scoreByStat'].keys()} - - self.away_team_cats = { STATS_MAP[i]: {'score': data['away']['cumulativeScore']['scoreByStat'][i]['score'], - 'result': data['away']['cumulativeScore']['scoreByStat'][i]['result']} for i in data['away']['cumulativeScore']['scoreByStat'].keys()} - diff --git a/espn_api/baseball/team.py b/espn_api/baseball/team.py index b64c81b2..ef3336bc 100644 --- a/espn_api/baseball/team.py +++ b/espn_api/baseball/team.py @@ -16,14 +16,11 @@ def __init__(self, data, member, roster, schedule, year): self.ties = data['record']['overall']['ties'] self.owner = 'None' self.logo_url = '' - self.stats = None self.standing = data['playoffSeed'] self.final_standing = data['rankCalculatedFinal'] self.roster = [] self.schedule = [] - if 'valuesByStat' in data: - self.stats = {STATS_MAP[i]: j for i, j in data['valuesByStat'].items()} if member: self.owner = "%s %s" % (member['firstName'], member['lastName']) diff --git a/setup.py b/setup.py index 1d076408..a7a74b48 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='espn_api', packages=find_packages(), - version='0.14.0', + version='0.14.1', author='Christian Wendt', description='ESPN API', install_requires=['requests>=2.0.0,<3.0.0', 'pandas>=0.11.0,<=0.25.3', 'numpy>=1.15,<=1.17.0'],