Correct comparison in get_current_cycle().
This commit is contained in:
@@ -61,7 +61,7 @@ class DailyLoop(commands.Cog, name="Daily Loop"):
|
||||
|
||||
for cycle, election in enumerate(config.election_cycles):
|
||||
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()
|
||||
):
|
||||
current_election = ElectionCycle(cycle, config, self.bot.get_guild(config.params.guild_id))
|
||||
|
||||
Reference in New Issue
Block a user