This commit is contained in:
parent
99895d1b94
commit
943b52e067
|
@ -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),
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user