diff options
author | 2021-03-25 23:32:20 +0000 | |
---|---|---|
committer | 2021-03-25 23:32:20 +0000 | |
commit | a95178989a9a5d2e2afd40256da8e672de8b2325 (patch) | |
tree | b1aec4600d961559bfd1051f4219cdbc532ddd56 | |
parent | Reset 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.py | 4 |
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) |