topics-random-fix

This commit is contained in:
tonyrewin 2022-09-05 18:07:18 +03:00
parent 7aaf025861
commit 10960ede1c

View File

@ -93,4 +93,4 @@ async def topics_random(_, info):
topic.stat = topic_stat
if topic_stat["shouts"] > 2:
normalized_topics.push(topic)
return random.choices(topics)[0:12]
return random.choices(topics, k=12)