community-author-fix
All checks were successful
deploy / deploy (push) Successful in 1m41s

This commit is contained in:
Untone 2023-12-17 09:17:23 +03:00
parent edf20466d6
commit 312900cec1

View File

@ -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)