mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
digest: Check whether length of hot topics is 4.
The length of hot topics would not exceed 4.
This commit is contained in:
@@ -195,7 +195,7 @@ def get_hot_topics(
|
||||
for topic in topics_by_length:
|
||||
if topic not in hot_topics:
|
||||
hot_topics.append(topic)
|
||||
if len(hot_topics) >= 4:
|
||||
if len(hot_topics) == 4:
|
||||
break
|
||||
|
||||
return hot_topics
|
||||
|
||||
Reference in New Issue
Block a user