cached-empty-fix-2

This commit is contained in:
Untone 2024-05-27 19:57:22 +03:00
parent 01d2d90df1
commit d93311541e

View File

@ -334,7 +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 fc["id"] != author_id] followers = [fc for fc in followers_cached if str(fc["id"]) != str(author_id)]
return followers return followers
author_follower_alias = aliased(AuthorFollower, name="af") author_follower_alias = aliased(AuthorFollower, name="af")