aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-03-25 23:32:20 +0000
committerGravatar Chris <[email protected]>2021-03-25 23:32:20 +0000
commita95178989a9a5d2e2afd40256da8e672de8b2325 (patch)
treeb1aec4600d961559bfd1051f4219cdbc532ddd56
parentReset a channel's non-claimant cache on claim, to indicate that the session h... (diff)
Convert to timestamp before posting to redis
-rw-r--r--bot/exts/help_channels/_cog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py
index d9b288280..46817218f 100644
--- a/bot/exts/help_channels/_cog.py
+++ b/bot/exts/help_channels/_cog.py
@@ -114,8 +114,8 @@ class HelpChannels(commands.Cog):
self.bot.stats.incr("help.claimed")
- await _caches.claim_times.set(message.channel.id, message.created_at)
- await _caches.claimant_last_message_times.set(message.channel.id, message.created_at)
+ await _caches.claim_times.set(message.channel.id, message.created_at.timestamp())
+ await _caches.claimant_last_message_times.set(message.channel.id, message.created_at.timestamp())
# Reset thie non_claimant cache for this channel to indicate that this session has yet to be answered.
await _caches.non_claimant_last_message_times.delete(message.channel.id)