Skip to content

Commit

Permalink
Merge branch 'cwendt94:master' into 2018-api-update
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-litts authored Jan 2, 2025
2 parents 07acba1 + ae12d00 commit ceb79c4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion espn_api/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.43.0'
__version__ = '0.44.0'
2 changes: 2 additions & 0 deletions espn_api/basketball/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions espn_api/football/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def __init__(self, data, roster, schedule, year, **kwargs):
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.move_to_ir = data.get('transactionCounter', {}).get('moveToIR', 0)
self.playoff_pct = data.get('currentSimulationResults', {}).get('playoffPct', 0) * 100
self.draft_projected_rank = data.get('draftDayProjectedRank', 0)
self.streak_length = data['record']['overall']['streakLength']
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
description='ESPN API',
long_description=readme,
long_description_content_type="text/markdown",
install_requires=['requests>=2.0.0,<3.0.0'],
install_requires=['requests>=2.0.0,<3.0.0', 'urllib3<=2.2.3'],
setup_requires=['nose>=1.0'],
test_suite='nose.collector',
tests_require=['nose', 'requests_mock', 'coverage'],
Expand Down

0 comments on commit ceb79c4

Please sign in to comment.