diff --git a/espn_api/basketball/team.py b/espn_api/basketball/team.py index a8fb6a47..075614f5 100644 --- a/espn_api/basketball/team.py +++ b/espn_api/basketball/team.py @@ -17,6 +17,8 @@ def __init__(self, data, roster, schedule, year, **kwargs): self.wins = data['record']['overall']['wins'] self.losses = data['record']['overall']['losses'] 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)