From 59c46172c4f7296ad02f9337724b3d71532fafed Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 21 Feb 2024 19:03:49 +0300 Subject: [PATCH] almost-dict --- resolvers/follower.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resolvers/follower.py b/resolvers/follower.py index 7ca4d9a0..f0979818 100644 --- a/resolvers/follower.py +++ b/resolvers/follower.py @@ -107,8 +107,8 @@ def query_follows(user_id: str): ) # Convert query results to lists of dictionaries - authors = [author.to_dict() for author in session.execute(authors_query)] - topics = [topic.to_dict() for topic in session.execute(topics_query)] + authors = [author.dict() for author in session.execute(authors_query)] + topics = [topic.dict() for topic in session.execute(topics_query)] # shouts_query = ( # session.query(Shout) # .join(ShoutReactionsFollower, ShoutReactionsFollower.follower == author_id)