This commit is contained in:
parent
d40728aec9
commit
baa8d56799
|
@ -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, main_topic.id)
|
q = q.group_by(Shout.id, main_author.id)
|
||||||
return q
|
return q
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user