This commit is contained in:
@@ -261,7 +261,7 @@ async def get_topics_with_stats(
|
||||
WHERE st.topic IN ({placeholders})
|
||||
GROUP BY st.topic
|
||||
"""
|
||||
params["comment_kind"] = int(ReactionKind.COMMENT.value)
|
||||
params["comment_kind"] = ReactionKind.COMMENT.value
|
||||
comments_stats = {row[0]: row[1] for row in session.execute(text(comments_stats_query), params)}
|
||||
|
||||
# Формируем результат с добавлением статистики
|
||||
|
||||
Reference in New Issue
Block a user