SwapnikKatkoori / sleeper-api-wrapper

A Python wrapper for the Sleeper Fantasy Football API.
MIT License
67 stars 19 forks source link

Update to Scoreboard #14

Closed AlexHawkins1 closed 2 years ago

AlexHawkins1 commented 5 years ago

Noticed this morning Sleeper added the attributes "points" and "custom_points" to the matchup object. This should account for league specific scoring and commissioner edits to team scores. Should provide a more accurate score for each individual league.

scipio314 commented 5 years ago

Looks like they don't post the "points" or "custom points" until after games are played. Which isn't useful if you want to post score updates before Tuesday.

AlexHawkins1 commented 5 years ago

yea @SwapnikKatkoori pointed that out on a prior merge request that I deleted. I wonder if we could/should direct it to the matchup object first and if it doesn't exist there go to the general scoring calculation.

SwapnikKatkoori commented 5 years ago

I think this is a good idea. It will still be inaccurate most of the time, but at least the things at the end of the week will be accurate.