diff options
| author | 2021-03-25 19:45:32 +0000 | |
|---|---|---|
| committer | 2021-03-25 19:45:32 +0000 | |
| commit | 65c009736507974ebce20a1f36b7e24a4ecc349b (patch) | |
| tree | 64b3b700e96ae66b38b37b801770e960746a01a8 | |
| parent | Add back seperation whitespace (diff) | |
Don't prepend command closes with auto
| -rw-r--r-- | bot/exts/help_channels/_stats.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/help_channels/_stats.py b/bot/exts/help_channels/_stats.py index cc9a053c4..123604945 100644 --- a/bot/exts/help_channels/_stats.py +++ b/bot/exts/help_channels/_stats.py @@ -28,8 +28,9 @@ async def report_complete_session(channel_id: int, closed_on: str) -> None: Set `is_auto` to True if the channel was automatically closed or False if manually closed. """ - caller = f"auto.{closed_on}" if closed_on else "command" - bot.instance.stats.incr(f"help.dormant_calls.{caller}") + if closed_on != "command": + closed_on = f"auto.{closed_on}" + bot.instance.stats.incr(f"help.dormant_calls.{closed_on}") in_use_time = await _channel.get_in_use_time(channel_id) if in_use_time: |