fields-group

This commit is contained in:
Untone 2024-11-01 21:45:51 +03:00
parent baa8d56799
commit 4b4234314d

View File

@ -164,7 +164,7 @@ def query_with_stat(info):
# Фильтр опубликованных
q = q.where(and_(Shout.published_at.is_not(None), Shout.deleted_at.is_(None)))
q = q.group_by(Shout.id, main_author.id)
q = q.group_by(Shout.id, main_author, stats_subquery)
return q