fix: PollResponse has no created_at — use sent_at for ordering

This commit is contained in:
Fringg
2026-04-29 10:17:40 +03:00
parent 83efc214fe
commit 768e0b6a73
+1 -1
View File
@@ -144,7 +144,7 @@ async def get_available_polls(
selectinload(PollResponse.poll).selectinload(Poll.questions), selectinload(PollResponse.poll).selectinload(Poll.questions),
selectinload(PollResponse.answers), selectinload(PollResponse.answers),
) )
.order_by(PollResponse.created_at.desc()) .order_by(PollResponse.sent_at.desc())
) )
responses = result.scalars().all() responses = result.scalars().all()