cached-empty-fix-3

This commit is contained in:
Untone 2024-05-27 19:59:16 +03:00
parent d93311541e
commit 9a94e5ac56

View File

@ -334,8 +334,7 @@ async def get_author_followers(_, _info, slug: str):
logger.debug( logger.debug(
f"@{slug} got {len(followers_cached)} followers cached" f"@{slug} got {len(followers_cached)} followers cached"
) )
followers = [fc for fc in followers_cached if str(fc["id"]) != str(author_id)] return followers_cached
return followers
author_follower_alias = aliased(AuthorFollower, name="af") author_follower_alias = aliased(AuthorFollower, name="af")
followers_query = select(Author).join( followers_query = select(Author).join(