bot providing incorrect election cycle due to new years. #47

Closed
opened 2024-01-01 13:21:53 -05:00 by imcompiling · 1 comment
Owner

Multiple things cause this issue.

  • returning -1 when getting the election cycle did not work as intended. It would instead make the bot use the last item in the config election list rather than none. This is a python feature that I didn't think about. Force a crash using None for now. Maybe think of a more elegant solution later.
  • The first of the year is not within the correct election cycle for some reason. Need to make sure that it is, then the problem goes away.
Multiple things cause this issue. - returning -1 when getting the election cycle did not work as intended. It would instead make the bot use the last item in the config election list rather than none. This is a python feature that I didn't think about. Force a crash using None for now. Maybe think of a more elegant solution later. - The first of the year is not within the correct election cycle for some reason. Need to make sure that it is, then the problem goes away.
imcompiling added reference 47-incorrect-election-cycle 2024-01-01 13:23:37 -05:00
Author
Owner

Issue was that the beginning of the election cycle for the last quarter (December) was not being brought back to last year, so the current day was not less than the beginning of the election.

Issue was that the beginning of the election cycle for the last quarter (December) was not being brought back to last year, so the current day was not less than the beginning of the election.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: imcompiling/dakiny-bot#47