fix too many topics
This commit is contained in:
parent
9519876d05
commit
feeef817c1
|
@ -93,4 +93,4 @@ async def topics_random(_, info):
|
||||||
topic.stat = topic_stat
|
topic.stat = topic_stat
|
||||||
if topic_stat["shouts"] > 2:
|
if topic_stat["shouts"] > 2:
|
||||||
normalized_topics.push(topic)
|
normalized_topics.push(topic)
|
||||||
return random.choices(topics, k=12)
|
return random.choices(topics, k=12)[0:12]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user