faster-response
All checks were successful
Deploy on push / deploy (push) Successful in 1m8s

This commit is contained in:
2024-06-11 22:46:35 +03:00
parent 04e20b29ee
commit c24f3bbb4a
7 changed files with 46 additions and 38 deletions

View File

@@ -259,11 +259,11 @@ def author_follows_topics(author_id: int):
return get_with_stat(author_follows_topics_query)
async def update_author_stat(author_id: int):
def update_author_stat(author_id: int):
author_query = select(Author).where(Author.id == author_id)
try:
result = get_with_stat(author_query)
if result and len(result) == 1:
if result:
author_with_stat = result[0]
if isinstance(author_with_stat, Author):
author_dict = author_with_stat.dict()