This commit is contained in:
parent
fec363063d
commit
851a661c6f
|
@ -373,6 +373,7 @@ async def load_reactions_by(_, info, by, limit=50, offset=0):
|
||||||
q = q.group_by(Reaction.id, Author.id, Shout.id, aliased_reaction.id)
|
q = q.group_by(Reaction.id, Author.id, Shout.id, aliased_reaction.id)
|
||||||
|
|
||||||
# order by
|
# order by
|
||||||
|
q = q.distinct()
|
||||||
q = q.order_by(desc(text('created_at')))
|
q = q.order_by(desc(text('created_at')))
|
||||||
|
|
||||||
# pagination
|
# pagination
|
||||||
|
|
Loading…
Reference in New Issue
Block a user