scalar
All checks were successful
Deploy on push / deploy (push) Successful in 23s

This commit is contained in:
Untone 2024-03-28 19:16:47 +03:00
parent a4957ef0ad
commit 9647ec9708

View File

@ -58,7 +58,7 @@ async def get_author(_, _info, slug='', author_id=None):
author_dict = None
try:
if slug:
author_id = local_session().query(Author.id).filter(Author.slug == slug)
author_id = local_session().query(Author.id).filter(Author.slug == slug).scalar()
logger.debug(f'found @{slug} with id {author_id}')
if author_id:
cache_key = f'author:{author_id}'