This commit is contained in:
parent
dd0c5d15fd
commit
b3eda4a0e1
|
@ -55,7 +55,9 @@ async def get_author(_, _info, slug='', author_id=0):
|
|||
try:
|
||||
# lookup for cached author
|
||||
author_query = select(Author).filter(or_(Author.slug == slug, Author.id == author_id))
|
||||
[found_author] = local_session().execute(author_query)
|
||||
[result]= local_session().execute(author_query)
|
||||
if result:
|
||||
[found_author] = result
|
||||
logger.debug(found_author)
|
||||
if found_author:
|
||||
logger.debug(f'found author id: {found_author.id}')
|
||||
|
|
Loading…
Reference in New Issue
Block a user