This commit is contained in:
parent
c905666591
commit
172b3af6df
|
@ -373,7 +373,8 @@ 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.distinct() # FIXME
|
||||||
|
# ERROR: psycopg2.errors.UndefinedFunction) could not identify an equality operator for type json
|
||||||
q = q.order_by(desc(Reaction.created_at))
|
q = q.order_by(desc(Reaction.created_at))
|
||||||
|
|
||||||
# pagination
|
# pagination
|
||||||
|
|
Loading…
Reference in New Issue
Block a user