followers-cache-debug-2

This commit is contained in:
Untone 2024-05-06 12:46:42 +03:00
parent 5caa2d1f8c
commit 78b12d4f33

View File

@ -313,7 +313,7 @@ async def get_author_followers(_, _info, slug: str):
if isinstance(cached, str): if isinstance(cached, str):
followers_cached = json.loads(cached) followers_cached = json.loads(cached)
if isinstance(followers_cached, list): if isinstance(followers_cached, list):
logger.debug(f"@{slug} got {len(followers_cached)} followers cached") logger.debug(f"@{slug} got {followers_cached} followers cached")
for fc in followers_cached: for fc in followers_cached:
if fc['id'] not in followers_ids: if fc['id'] not in followers_ids:
followers.append(fc) followers.append(fc)