From 312900cec1c5227ca937355ce8799f3eaf4398ca Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 17 Dec 2023 09:17:23 +0300 Subject: [PATCH] community-author-fix --- resolvers/community.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/community.py b/resolvers/community.py index 57149e4b..fac11ff6 100644 --- a/resolvers/community.py +++ b/resolvers/community.py @@ -65,7 +65,7 @@ def followed_communities(follower_id): q = select(Community) q = add_community_stat_columns(q) q = q.join(CommunityAuthor, CommunityAuthor.community == Community.id).where( - CommunityAuthor.follower == follower_id + CommunityAuthor.author == follower_id ) # 3. Pass the query to the get_authors_from_query function and return the results return get_communities_from_query(q)