From fbbe6b0751f0fb890c9829d21e9a50ea6b575661 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 31 Jan 2024 18:23:00 +0300 Subject: [PATCH] following-set-fix-4 --- resolvers/follower.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resolvers/follower.py b/resolvers/follower.py index 7afd5190..5177f153 100644 --- a/resolvers/follower.py +++ b/resolvers/follower.py @@ -118,8 +118,8 @@ async def get_my_followed(_, info): .filter(TopicFollower.topic == Topic.id) ) - authors = set(session.execute(authors_query).all()) - topics = set(session.execute(topics_query).all()) + authors = set(session.execute(authors_query).scalars()) + topics = set(session.execute(topics_query).scalars()) communities = session.query(Community).all() return {'topics': list(topics), 'authors': list(authors), 'communities': communities}