From 172b3af6df88ed5fbe839b93ae00342350399061 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 26 Feb 2024 18:12:09 +0300 Subject: [PATCH] no-distinct-fix --- resolvers/reaction.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resolvers/reaction.py b/resolvers/reaction.py index cad5c73f..563e2a2c 100644 --- a/resolvers/reaction.py +++ b/resolvers/reaction.py @@ -373,7 +373,8 @@ async def load_reactions_by(_, info, by, limit=50, offset=0): q = q.group_by(Reaction.id, Author.id, Shout.id, aliased_reaction.id) # order by - q = q.distinct() + # q = q.distinct() # FIXME + # ERROR: psycopg2.errors.UndefinedFunction) could not identify an equality operator for type json q = q.order_by(desc(Reaction.created_at)) # pagination