From 9a94e5ac56c5ea078319ff6108b4e6582b2c63c2 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 27 May 2024 19:59:16 +0300 Subject: [PATCH] cached-empty-fix-3 --- resolvers/author.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resolvers/author.py b/resolvers/author.py index f3a277a4..f453a39e 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -334,8 +334,7 @@ async def get_author_followers(_, _info, slug: str): logger.debug( f"@{slug} got {len(followers_cached)} followers cached" ) - followers = [fc for fc in followers_cached if str(fc["id"]) != str(author_id)] - return followers + return followers_cached author_follower_alias = aliased(AuthorFollower, name="af") followers_query = select(Author).join(