This commit is contained in:
@@ -153,11 +153,14 @@ def add_rating_columns(q, group_list):
|
||||
)
|
||||
)).label('shouts_rating')
|
||||
)
|
||||
.outerjoin(
|
||||
Shout,
|
||||
Shout.authors.any(Author.id == Author.id)
|
||||
)
|
||||
.outerjoin(
|
||||
Reaction,
|
||||
and_(
|
||||
Reaction.shout == Shout.id,
|
||||
Shout.authors.any(id=Author.id),
|
||||
Reaction.deleted_at.is_(None),
|
||||
),
|
||||
)
|
||||
|
Reference in New Issue
Block a user