From b4491270b9f69a54b0922b8b7c992fc848502d08 Mon Sep 17 00:00:00 2001 From: terrtia Date: Mon, 6 Jan 2025 16:48:24 +0100 Subject: [PATCH] fix: [chat messages by year] fix subchannel nb_max --- bin/lib/objects/abstract_chat_object.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/lib/objects/abstract_chat_object.py b/bin/lib/objects/abstract_chat_object.py index 8613f86e..cf7f88fa 100755 --- a/bin/lib/objects/abstract_chat_object.py +++ b/bin/lib/objects/abstract_chat_object.py @@ -262,6 +262,7 @@ class AbstractChatObject(AbstractSubtypeObject, ABC): if date not in nb_year: nb_year[date] = 0 nb_year[date] += 1 + nb_max = max(nb_max, nb_year[date]) return nb_max, nb_year