async-fix-2
This commit is contained in:
@@ -320,7 +320,7 @@ async def get_author_followers(_, _info, slug: str):
|
|||||||
author_alias = aliased(Author)
|
author_alias = aliased(Author)
|
||||||
author_query = select(author_alias).filter_by(slug=slug)
|
author_query = select(author_alias).filter_by(slug=slug)
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
result = await session.execute(author_query).first()
|
result = session.execute(author_query).first()
|
||||||
if not result:
|
if not result:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user