dockerfile-update-3
Some checks failed
Deploy on push / deploy (push) Failing after 28s

This commit is contained in:
2024-02-25 19:27:41 +03:00
parent 3b5a6973ef
commit feea5845a8
3 changed files with 73 additions and 16 deletions

View File

@@ -445,7 +445,10 @@ async def reacted_shouts_updates(follower_id: int, limit=50, offset=0) -> List[S
# Sort shouts by the `last_comment` field
combined_query = (
union(q1, q2).order_by(desc(text('last_comment_stat'))).limit(limit).offset(offset)
union(q1, q2)
.order_by(desc(text('last_comment_stat')))
.limit(limit)
.offset(offset)
)
results = session.execute(combined_query).scalars()