Be inclusive when checkign for an election cycle.
build_develop / build (push) Has been cancelled

This commit is contained in:
2023-09-13 10:51:16 -04:00
parent 117dea48c4
commit e686cf88e5
+1 -1
View File
@@ -81,7 +81,7 @@ class DailyLoop(commands.Cog, name="Daily Loop"):
for cycle, election in enumerate(config.election_cycles): for cycle, election in enumerate(config.election_cycles):
if ( if (
today.date() >= get_datetime(election.election_start).date() today.date() >= get_datetime(election.election_start).date()
and today.date() < get_datetime(election.term_start).date() and today.date() <= get_datetime(election.term_start).date()
): ):
current_election = ElectionCycle(cycle, config, self.bot.get_guild(config.params.guild_id)) current_election = ElectionCycle(cycle, config, self.bot.get_guild(config.params.guild_id))