From 6dfb3e986332a502e810e6c159b02b461112696c Mon Sep 17 00:00:00 2001 From: lzzy12 Date: Tue, 24 Dec 2019 17:35:09 +0530 Subject: [PATCH] Simplify get_readable_msg code Signed-off-by: lzzy12 --- bot/helper/ext_utils/bot_utils.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bot/helper/ext_utils/bot_utils.py b/bot/helper/ext_utils/bot_utils.py index c50651b..dbfedc4 100644 --- a/bot/helper/ext_utils/bot_utils.py +++ b/bot/helper/ext_utils/bot_utils.py @@ -107,14 +107,7 @@ def get_readable_message(): msg = "" for download in list(download_dict.values()): msg += f"{download.name()} - " - if download.status() == MirrorStatus.STATUS_UPLOADING: - msg += "Uploading\n\n" - elif download.status() == MirrorStatus.STATUS_ARCHIVING: - msg += "Archiving\n\n" - elif download.status() == MirrorStatus.STATUS_WAITING: - msg += "Queued\n\n" - elif download.status() == MirrorStatus.STATUS_DOWNLOADING: - msg += "Downloading" + msg += download.status() if download.status() != MirrorStatus.STATUS_ARCHIVING: msg += f"{get_progress_bar_string(download)} {download.progress()} of " \ f"{download.size()}" \