fields-group
This commit is contained in:
parent
baa8d56799
commit
4b4234314d
|
@ -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.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
|
return q
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user