Skip to content

Commit

Permalink
Merge pull request #630 from JohnDiebold/basketball-expectedreturndate
Browse files Browse the repository at this point in the history
Basketball add expected return date to player
  • Loading branch information
cwendt94 authored Feb 7, 2025
2 parents 9c0f586 + 68a72fe commit 2235d80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions espn_api/basketball/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def __init__(self, data, year, pro_team_schedule = None, news = None):
self.stats = {}
self.schedule = {}
self.news = {}
expected_return_date = json_parsing(data, 'expectedReturnDate')
self.expected_return_date = datetime(*expected_return_date).date() if expected_return_date else None

if pro_team_schedule:
pro_team_id = json_parsing(data, 'proTeamId')
Expand Down

0 comments on commit 2235d80

Please sign in to comment.