get-author-fix-3
Some checks failed
Deploy on push / deploy (push) Failing after 6s

This commit is contained in:
Untone 2024-04-09 21:53:35 +03:00
parent 3cc680754b
commit 3f2c00a1df

View File

@ -55,7 +55,7 @@ async def get_author(_, _info, slug='', author_id=0):
try: try:
# lookup for cached author # lookup for cached author
author_query = select(Author).filter(or_(Author.slug == slug, Author.id == author_id)) author_query = select(Author).filter(or_(Author.slug == slug, Author.id == author_id))
found_author = local_session().execute(author_query).first() [found_author] = local_session().execute(author_query).first()
logger.debug(found_author) logger.debug(found_author)
if found_author: if found_author:
logger.debug(f'found author id: {found_author.id}') logger.debug(f'found author id: {found_author.id}')