pyrafixes
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
2023-11-29 11:00:00 +03:00
parent 63eb952655
commit fe4e37663e
5 changed files with 84 additions and 50 deletions

View File

@@ -140,6 +140,7 @@ async def get_authors_all(_, _info):
@query.field("get_author")
async def get_author(_, _info, slug="", user=None, author_id=None):
q = None
if slug or user or author_id:
if slug:
q = select(Author).where(Author.slug == slug)