From 2d538a292a4bb6a4e8c27bb85def3891b3db08fb Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 28 Mar 2024 19:11:26 +0300 Subject: [PATCH] refactored-get-author-4 --- resolvers/author.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/author.py b/resolvers/author.py index 8e67796a..a65c450b 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -71,8 +71,8 @@ async def get_author(_, _info, slug='', author_id=None): q = select(Author).where(Author.id == author_id) [author] = await get_authors_with_stat_cached(q) if author: - logger.debug(f'queried author from db {cache_key} -> {cache}') author_dict = author.dict() + logger.debug(f'queried author from db {author_dict}') else: logger.warn('author was not cached!') author_query = select(Author).filter(Author.id == author_id)