get-shouts-with-stats-fix6
This commit is contained in:
parent
0f87ac6a00
commit
d83be5247b
|
@ -157,7 +157,7 @@ def get_shouts_with_stats(q, limit=10, offset=0, author_id=None):
|
|||
"""
|
||||
# Определение алиасов подзапросов авторов и тем
|
||||
authors_subquery = (
|
||||
q.session.query(
|
||||
select(
|
||||
ShoutAuthor.shout.label("shout_id"),
|
||||
func.json_agg(
|
||||
func.json_build_object(
|
||||
|
|
Loading…
Reference in New Issue
Block a user