aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-09-21 09:21:33 +0200
committerGravatar GitHub <[email protected]>2021-09-21 09:21:33 +0200
commit24e099e8247e51f91d96294f147c6e024bd1db69 (patch)
tree14e454dea492be341b07a9ba4055cf4127d9cff3 /bot
parentEmoji: make the datetimes offset-naive (diff)
Hacktoberfest: make datetimes offset-naive
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/events/hacktoberfest/hacktober-issue-finder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/events/hacktoberfest/hacktober-issue-finder.py b/bot/exts/events/hacktoberfest/hacktober-issue-finder.py
index e3053851..0cbb6df4 100644
--- a/bot/exts/events/hacktoberfest/hacktober-issue-finder.py
+++ b/bot/exts/events/hacktoberfest/hacktober-issue-finder.py
@@ -52,10 +52,10 @@ class HacktoberIssues(commands.Cog):
async def get_issues(self, ctx: commands.Context, option: str) -> Optional[dict]:
"""Get a list of the python issues with the label 'hacktoberfest' from the Github api."""
if option == "beginner":
- if (ctx.message.created_at - self.cache_timer_beginner).seconds <= 60:
+ if (ctx.message.created_at.replace(tzinfo=None) - self.cache_timer_beginner).seconds <= 60:
log.debug("using cache")
return self.cache_beginner
- elif (ctx.message.created_at - self.cache_timer_normal).seconds <= 60:
+ elif (ctx.message.created_at.replace(tzinfo=None) - self.cache_timer_normal).seconds <= 60:
log.debug("using cache")
return self.cache_normal