Skip to content

Basketball player number of games ahead? #394

Discussion options

You must be logged in to vote

That feature was just added! Players now have a schedule field that is a dict of all the games. You will need to do some filtering because its not ordered but the keys are scoring period and the value is an object with date and team they are playing!
Example

# Karl-Anthony Towns
league.teams[0].roster[0].schedule
{'131': {'team': 'CHA', 'date': datetime.datetime(2023, 2, 25, 1, 0)}, 
'3': {'team': 'OKC', 'date': datetime.datetime(2022, 10, 20, 0, 0)}, 
'133': {'team': 'GSW', 'date': datetime.datetime(2023, 2, 27, 0, 30)}, 
'5': {'team': 'UTA', 'date': datetime.datetime(2022, 10, 22, 0, 0)}}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@frank-gentile
Comment options

Answer selected by frank-gentile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants