From 3d2837036279e44e7aac73c4b7ccaee2ebd34f81 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 28 Mar 2024 14:38:03 +0300 Subject: [PATCH] get_author-follows-debug-2 --- resolvers/author.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/author.py b/resolvers/author.py index fa6efa94..3a8f5cc2 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -175,8 +175,8 @@ async def get_author_follows(_, _info, slug='', user=None, author_id=0): raise ValueError('One of slug, user, or author_id must be provided') logger.debug(author_query) [author] = local_session().execute(author_query) - logger.debug(author.dict()) if isinstance(author, Author): + logger.debug(author.dict()) author_id = author.id.scalar() rkey = f'author:{author_id}:follows-authors' logger.debug(f'getting {author_id} follows authors')