mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-01-18 16:36:13 +00:00
fix: [chat messages by year] fix subchannel nb_max
This commit is contained in:
parent
9e8ff182e7
commit
b4491270b9
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue