From 8e090988b1abf71b31bb0f1d697c299cbc830391 Mon Sep 17 00:00:00 2001 From: FA Tulloh <77918734+yourtulloh@users.noreply.github.com> Date: Sun, 11 Jul 2021 05:42:18 +0800 Subject: [PATCH] Fix status of Archiving/Extracting not show (#271) --- bot/helper/ext_utils/bot_utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bot/helper/ext_utils/bot_utils.py b/bot/helper/ext_utils/bot_utils.py index f992f4e..2f3b8a1 100644 --- a/bot/helper/ext_utils/bot_utils.py +++ b/bot/helper/ext_utils/bot_utils.py @@ -116,11 +116,11 @@ def get_readable_message(): f" | Peers: {download.aria_download().connections}" except: pass - if download.message.from_user.username: - uname = f'@{download.message.from_user.username}' - else: - uname = f'{download.message.from_user.first_name}' - msg += f'\nUser: {uname} ({download.message.from_user.id})' + if download.message.from_user.username: + uname = f'@{download.message.from_user.username}' + else: + uname = f'{download.message.from_user.first_name}' + msg += f'\nUser: {uname} ({download.message.from_user.id})' if download.status() == MirrorStatus.STATUS_DOWNLOADING: msg += f"\nTo Stop: /{BotCommands.CancelMirror} {download.gid()}" msg += "\n\n"