From 138fa9b124b75ae9c42eba20c100ae8e04f011e5 Mon Sep 17 00:00:00 2001 From: Christian Wendt Date: Thu, 2 Jan 2025 17:06:07 +0000 Subject: [PATCH] Basketball Team PF and PA --- espn_api/basketball/team.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/espn_api/basketball/team.py b/espn_api/basketball/team.py index 8dcf8356..95fccf08 100644 --- a/espn_api/basketball/team.py +++ b/espn_api/basketball/team.py @@ -15,6 +15,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)