From 2fad159f2e8017c41c8cde48ed2b1f315dc9c95c Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Mon, 13 Mar 2023 14:45:40 +0200 Subject: [PATCH] Fixed bug with `resetqueue` command --- bot/handlers/admin/reset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/handlers/admin/reset.py b/bot/handlers/admin/reset.py index 843ee22..0c6b263 100644 --- a/bot/handlers/admin/reset.py +++ b/bot/handlers/admin/reset.py @@ -11,7 +11,7 @@ async def resetqueue(message: types.Message, is_command: bool = True): 'It is only for this bot instance maintainers and admins') return - if is_command and message.text.lower() != 'reset': + if not is_command and message.text.lower() != 'reset': return db[DBTables.queue]['n'] = 0