less-logs
All checks were successful
Deploy on push / deploy (push) Successful in 25s

This commit is contained in:
Untone 2024-02-27 10:53:53 +03:00
parent fc6b8d3a08
commit 1214dc03d9

View File

@ -136,7 +136,7 @@ async def get_author_follows(_, _info, slug='', user=None, author_id=None):
rkey = f'id:{author_id}:follows-authors' rkey = f'id:{author_id}:follows-authors'
logger.debug(f'getting {author_id} follows authors') logger.debug(f'getting {author_id} follows authors')
cached = await redis.execute('GET', rkey) cached = await redis.execute('GET', rkey)
logger.debug(f'AUTHOR CACHED {cached}') # logger.debug(f'AUTHOR CACHED {cached}')
authors = json.loads(cached) if cached else author_follows_authors(author_id) authors = json.loads(cached) if cached else author_follows_authors(author_id)
if not cached: if not cached:
prepared = [author.dict() for author in authors] prepared = [author.dict() for author in authors]