nga-27 / fantasy-football-scratchpad

Utilizing the ESPN fantasy football APIs to help manage two leagues combine simultaneously.
0 stars 1 forks source link

bug fix for playoff rounds #21

Closed nga-27 closed 2 years ago

nga-27 commented 2 years ago

if current_week for db data fetching needed another check for playoffs. Effectively, since we were only getting data not updating/setting it (as would happen in scoring.py), we couldn't have just returned None for a current week. A catch was added.

Additionally, the playoff_week counter used the wrong field (current_week instead of regular_season.number_of_weeks) to generate which playoff week a particular week was.