distinct-reactions
All checks were successful
Deploy on push / deploy (push) Successful in 25s

This commit is contained in:
Untone 2024-02-26 15:46:30 +03:00
parent fec363063d
commit 851a661c6f

View File

@ -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