SwapnikKatkoori / sleeper-api-wrapper

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

Change to scoreboard #12

Closed AlexHawkins1 closed 5 years ago

AlexHawkins1 commented 5 years ago

Noticed this morning sleeper starting including team score in the matchup object. should make getting an accurate team score much easier. Please check/test before promoting.

AlexHawkins1 commented 5 years ago

This was garbage. will re-submit

SwapnikKatkoori commented 5 years ago

@AlexHawkins1 I got the points from the matchup object in a previous version. But the problem with this is that its None until the week is over. So getting the points from the matchup object in the middle of the week was causing some problems. So I think we should wait a week and see if Sleeper changed that before merging this.

AlexHawkins1 commented 5 years ago

Makes sense on why I saw it Tuesday Morning. Will hold off but unfortunately the set scores on the player stats do not reflect any non-custom scoring so it may not be exactly right.

SwapnikKatkoori commented 5 years ago

Yeah I'll try emailing the Sleeper team to see if they'll update the team score in the matchup object during the week. Otherwise the only way to calculate custom scoring would be using the "scoring_settings" from this object https://docs.sleeper.app/#leagues and manually calculate the scores for each team :(