From 768e0b6a7363e8b496f1e1b83fe567993dc664da Mon Sep 17 00:00:00 2001 From: Fringg Date: Wed, 29 Apr 2026 10:17:40 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20PollResponse=20has=20no=20created=5Fat?= =?UTF-8?q?=20=E2=80=94=20use=20sent=5Fat=20for=20ordering?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/cabinet/routes/polls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cabinet/routes/polls.py b/app/cabinet/routes/polls.py index 30f623c1..9b7b1457 100644 --- a/app/cabinet/routes/polls.py +++ b/app/cabinet/routes/polls.py @@ -144,7 +144,7 @@ async def get_available_polls( selectinload(PollResponse.poll).selectinload(Poll.questions), selectinload(PollResponse.answers), ) - .order_by(PollResponse.created_at.desc()) + .order_by(PollResponse.sent_at.desc()) ) responses = result.scalars().all()