diff options
author | 2021-09-21 09:21:33 +0200 | |
---|---|---|
committer | 2021-09-21 09:21:33 +0200 | |
commit | 24e099e8247e51f91d96294f147c6e024bd1db69 (patch) | |
tree | 14e454dea492be341b07a9ba4055cf4127d9cff3 | |
parent | Emoji: make the datetimes offset-naive (diff) |
Hacktoberfest: make datetimes offset-naive
-rw-r--r-- | bot/exts/events/hacktoberfest/hacktober-issue-finder.py | 4 |
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 |