return-type-fix
Some checks failed
Deploy to core / deploy (push) Failing after 1m30s

This commit is contained in:
2024-02-03 17:31:00 +03:00
parent 18521f3fc5
commit d3b2eddf58
3 changed files with 12 additions and 7 deletions

View File

@@ -79,14 +79,16 @@ async def update_profile(_, info, profile):
Author.update(author, profile)
session.add(author)
session.commit()
return {'error': None, 'author': author}
return {'error': None, 'author': author}
# TODO: caching query
@query.field('get_authors_all')
async def get_authors_all(_, _info):
authors = []
with local_session() as session:
return session.query(Author).all()
authors = session.query(Author).all()
return authors
def count_author_comments_rating(session, author_id) -> int: