Skip to content

Commit

Permalink
Merge pull request #597 from simonbilskyrollins/transactionInfo
Browse files Browse the repository at this point in the history
Add Transaction Info to Basketball Team
  • Loading branch information
cwendt94 authored Nov 1, 2024
2 parents be5e92b + 3dcd6ca commit 0fcab3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions espn_api/basketball/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ 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.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.logo_url = ''
self.stats = None
self.standing = data['playoffSeed']
Expand Down

0 comments on commit 0fcab3f

Please sign in to comment.