diff --git a/espn_api/football/team.py b/espn_api/football/team.py index 75924cf5..dbcadd13 100644 --- a/espn_api/football/team.py +++ b/espn_api/football/team.py @@ -13,6 +13,10 @@ def __init__(self, data, roster, member, schedule, year): self.ties = data['record']['overall']['ties'] self.points_for = data['record']['overall']['pointsFor'] self.points_against = round(data['record']['overall']['pointsAgainst'], 2) + self.acquisitions = data.get('transactionCounter', {}).get('acquisitions', 0) + self.acquisition_budget_spent = data.get('transactionCounter', {}).get('acquisitionBudgetSpent', 0) + self.drops = data.get('transactionCounter', {}).get('drops', 0) + self.trades = data.get('transactionCounter', {}).get('trades', 0) self.playoff_pct = data.get('currentSimulationResults', {}).get('playoffPct', 0) * 100 self.draft_projected_rank = data.get('draftDayProjectedRank', 0) self.owner = 'None' diff --git a/setup.py b/setup.py index 87db28f5..2befa4b4 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='espn_api', packages=find_packages(), - version='0.19.3', + version='0.19.4', author='Christian Wendt', description='ESPN API', install_requires=['requests>=2.0.0,<3.0.0'],