From b0df28436a8355ff7dcd82099e848244c09d5b48 Mon Sep 17 00:00:00 2001 From: justvlade Date: Fri, 26 May 2023 01:09:56 +0300 Subject: [PATCH] Update admin_actions.py Added restriction_time_to_human_readable call to display actual mute time instead of original string --- handlers/admin_actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/admin_actions.py b/handlers/admin_actions.py index 8c89687..54a6543 100644 --- a/handlers/admin_actions.py +++ b/handlers/admin_actions.py @@ -94,11 +94,11 @@ async def cmd_readonly(message: types.Message): if len(words) > 1: if user.last_name is not None: await message.answer(f"Пользователю {user.first_name} {user.last_name} (@{user.username}) выдан мут на " + ( - "({restriction_time})").format(restriction_time=words[1]) + "({restriction_time})").format(restriction_time=restriction_time_to_human_readable(restriction_time)) ) else: await message.answer(f"Пользователю {user.first_name} (@{user.username}) выдан мут на " + ( - "({restriction_time})").format(restriction_time=words[1]) + "({restriction_time})").format(restriction_time=restriction_time_to_human_readable(restriction_time)) ) else: if user.last_name is not None: