From 811317fc0a1a26fe6aecee4d31bee1cae32788f4 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Thu, 18 May 2023 20:16:58 -0400 Subject: [PATCH] Add more debug information --- classes/election_cycle.py | 4 ++++ cogs/loops/daily_loop.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/election_cycle.py b/classes/election_cycle.py index d54cc91..acbc92b 100644 --- a/classes/election_cycle.py +++ b/classes/election_cycle.py @@ -37,6 +37,7 @@ class ElectionCycle: Function checks current date to see if something needs to be run. """ today = datetime.today() + print("checking the date") # check all dates if action is needed if today.date() == self._election_start.dat(): @@ -51,6 +52,9 @@ class ElectionCycle: await self.term_start_action() elif today.date() == self._term_end.date(): await self.term_end_action() + else: + print("today was not a special date") + print(today) async def election_start_action(self) -> None: """ diff --git a/cogs/loops/daily_loop.py b/cogs/loops/daily_loop.py index a5effb5..f0d050e 100644 --- a/cogs/loops/daily_loop.py +++ b/cogs/loops/daily_loop.py @@ -17,7 +17,7 @@ class DailyLoop(commands.Cog, name="Daily Loop"): def __init__(self, bot: commands.Bot) -> None: self.bot = bot - self.election = ElectionCycle(datetime(2023, 5, 18), datetime(2023, 5, 22), datetime(2023, 5, 23), self.bot) + self.election = ElectionCycle(datetime(2023, 5, 19), datetime(2023, 5, 23), datetime(2023, 5, 24), self.bot) @commands.Cog.listener() async def on_ready(self):