inplace-fix

This commit is contained in:
tonyrewin 2022-09-06 18:21:09 +03:00
parent 890c303338
commit f26ab9c46c

View File

@ -93,4 +93,5 @@ 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.shuffle(normalized_topics)[0:12] random.shuffle(normalized_topics)
return normalized_topics[0:12]