From 7a3ce4a982f59a6d49535f7c3e86513106a33747 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 28 Feb 2024 18:15:19 +0300 Subject: [PATCH] .c --- resolvers/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/reader.py b/resolvers/reader.py index 00edfc61..68638cd7 100644 --- a/resolvers/reader.py +++ b/resolvers/reader.py @@ -465,7 +465,7 @@ async def load_shouts_random_topic(_, info, limit: int = 10): q = ( select(Shout, Topic) .join(Shout.topics) - .join(random_topic_subquery, Topic.id == random_topic_subquery.id) + .join(random_topic_subquery, Topic.id == random_topic_subquery.c.id) .options(joinedload(Shout.authors)) .filter( and_(