fmt
All checks were successful
Deploy on push / deploy (push) Successful in 26s

This commit is contained in:
2024-05-18 11:00:46 +03:00
parent 3d90d9c81d
commit a749ade30b
6 changed files with 38 additions and 12 deletions

View File

@@ -31,9 +31,7 @@ def add_author_stat_columns(q):
func.count(distinct(aliased_shout.shout)).label("shouts_stat")
)
aliased_follower = aliased(AuthorFollower)
q = q.outerjoin(
aliased_follower, aliased_follower.author == Author.id
).add_columns(
q = q.outerjoin(aliased_follower, aliased_follower.author == Author.id).add_columns(
func.count(distinct(aliased_follower.follower)).label("followers_stat")
)