owendavies93 / mandyville-data

Data fetching, external API interaction and data storage for mandyville.
MIT License
1 stars 0 forks source link

Improve update-fpl-info to deal with season changeover #9

Open owendavies93 opened 3 years ago

owendavies93 commented 3 years ago

Currently, it will probably break when the season changes over, because the "current season" logic just assumes that the Premier League season changes over on the 1st July for simplicity. This isn't a problem with the actual league but it is a problem with FPL. In reality it's usually a couple of weeks after 1st July.

Currently the solution would be to disable the cron after the season finishes, and re-enable it once the season changes over, but it'd be much nicer if the logic coped with it automatically.