queries-refactoring-2
All checks were successful
Deploy on push / deploy (push) Successful in 26s

This commit is contained in:
2024-05-18 14:15:05 +03:00
parent 7d97f40826
commit fd7bd385fc
7 changed files with 46 additions and 34 deletions

View File

@@ -107,8 +107,8 @@ def after_reaction_update(mapper, connection, reaction: Reaction):
def after_author_update(_mapper, _connection, author: Author):
logger.info("after author update")
q = select(Author).where(Author.id == author.id)
result = get_with_stat(q)
author_query = select(Author).where(Author.id == author.id)
result = get_with_stat(author_query)
if result:
[author_with_stat] = result
if author_with_stat: