From 3a96a9041a0c179a0b22a059560e573d8da1b8c1 Mon Sep 17 00:00:00 2001 From: klemek Date: Thu, 7 Jan 2021 10:42:25 +0100 Subject: [PATCH] fixing log manager messages --- log_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/log_manager.py b/log_manager.py index 521bfa4..a707eba 100644 --- a/log_manager.py +++ b/log_manager.py @@ -182,6 +182,7 @@ class GuildLogs: loading_new = 0 total_msg = 0 total_chan = 0 + max_chan = len(target_channels) for channel in target_channels: if channel.id not in self.channels: loading_new += 1 @@ -200,7 +201,7 @@ class GuildLogs: ) dt = (datetime.now() - t0).total_seconds() await progress.edit( - content=f"```Reading history...\n{tmp_msg} messages in {total_chan + 1} channels ({round(tmp_msg/dt)}m/s)\n{warning_msg}```" + content=f"```Reading history...\n{tmp_msg} messages in {total_chan + 1}/{max_chan} channels ({round(tmp_msg/dt)}m/s)\n{warning_msg}```" ) if done: total_chan += 1