This commit is contained in:
parent
aa9ffd3053
commit
14dc1c761a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user