From 6a4785cdac07a666bb5f208b096956878a8bfb0f Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 7 Aug 2024 15:10:37 +0300 Subject: [PATCH] nogroupby --- resolvers/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/reader.py b/resolvers/reader.py index 4b7d69d7..76dfd70b 100644 --- a/resolvers/reader.py +++ b/resolvers/reader.py @@ -111,7 +111,7 @@ def query_shouts(): .outerjoin(authors_subquery, authors_subquery.c.shout_id == Shout.id) .outerjoin(topics_subquery, topics_subquery.c.shout_id == Shout.id) .where(and_(Shout.published_at.is_not(None), Shout.deleted_at.is_(None))) - .group_by(Shout.id, authors_subquery.c.authors, topics_subquery.c.topics) + .group_by(Shout.id) ) return q, aliased_reaction