aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joseph Banks <[email protected]>2020-04-11 22:28:24 +0100
committerGravatar Joseph Banks <[email protected]>2020-04-11 22:28:24 +0100
commit33c40ce2913e2a324647c4eb8f5c511cb26cf8ae (patch)
tree88f4b3903bfdff66f0b2bfa18195de589597938c
parentAdditional statistics (diff)
Use in for membership check as opposed to .get()
-rw-r--r--bot/cogs/help_channels.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index 01a77db2b..632c78701 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -466,7 +466,7 @@ class HelpChannels(Scheduler, commands.Cog):
self.bot.stats.incr(f"help.dormant_calls.{caller}")
- if self.claim_times.get(channel.id):
+ if channel.id in self.claim_times:
claimed = self.claim_times[channel.id]
in_use_time = datetime.now() - claimed
self.bot.stats.timer("help.in_use_time", in_use_time)