fix-get-author-i
All checks were successful
deploy / deploy (push) Successful in 1m31s

This commit is contained in:
Untone 2023-12-29 02:31:44 +03:00
parent aa9ffd3053
commit 14dc1c761a

View File

@ -153,9 +153,10 @@ def count_author_shouts_rating(session, author_id) -> int:
def load_author_with_stats(q):
q = add_author_stat_columns(q)
[author] = get_authors_from_query(q)
result = get_authors_from_query(q)
if author:
if result:
[author] = result
with local_session() as session:
comments_count = (
session.query(Reaction)