groupby-fix-2

This commit is contained in:
Untone 2023-12-02 22:17:09 +03:00
parent a8b8637057
commit fc3745f07e

View File

@ -161,7 +161,7 @@ async def load_shouts_by(_, info, options):
q = apply_filters(q, options.get("filters", {}))
# group
q = q.group_by(Shout.id, Author.user, Author.name)
q = q.group_by(Shout.id, Author.user, Author.name, Author.slug)
# order
order_by = options.get("order_by", Shout.published_at)