diff options
author | 2019-12-02 19:41:27 -0500 | |
---|---|---|
committer | 2019-12-02 19:41:27 -0500 | |
commit | b6f10e50cadac21ac1f08bc929afd4523ba6f0c4 (patch) | |
tree | 4962dffe3d5f20804f41bb8d4115b5d23d52c2bf /bot/seasons/christmas/adventofcode.py | |
parent | Remove hardcoded date from AOC info link embed (diff) |
Fix Christmas season loading bug
The `SeasonBase.is_between_dates()` method assumes that the season's start and end dates are in the same year, which works for every season except for Christmas, since its end date is New Year's Day.
To fix this, the christmas.end() method has been overloaded to return the next year instead of the current year.
This does not affect checks made on 1 January of the next year, as the season's start date will guard against this.
Diffstat (limited to 'bot/seasons/christmas/adventofcode.py')
0 files changed, 0 insertions, 0 deletions