sort-fix-2
All checks were successful
Deploy on push / deploy (push) Successful in 25s

This commit is contained in:
Untone 2024-02-26 20:26:57 +03:00
parent be27e7306c
commit 3efcfef537

View File

@ -356,7 +356,8 @@ async def load_reactions_by(_, info, by, limit=50, offset=0):
"""
q = (
select([Reaction, Author, Shout])
select(Reaction, Author, Shout)
.select_from(Reaction)
.join(Author, Reaction.created_by == Author.id)
.join(Shout, Reaction.shout == Shout.id)
)