fix: [chat messages by year] fix subchannel nb_max
Some checks are pending
CI / ail_test (3.10) (push) Waiting to run
CI / ail_test (3.7) (push) Waiting to run
CI / ail_test (3.8) (push) Waiting to run
CI / ail_test (3.9) (push) Waiting to run

This commit is contained in:
terrtia 2025-01-06 16:48:24 +01:00
parent 9e8ff182e7
commit b4491270b9
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -262,6 +262,7 @@ class AbstractChatObject(AbstractSubtypeObject, ABC):
if date not in nb_year: if date not in nb_year:
nb_year[date] = 0 nb_year[date] = 0
nb_year[date] += 1 nb_year[date] += 1
nb_max = max(nb_max, nb_year[date])
return nb_max, nb_year return nb_max, nb_year