From e69d3d0db36b0fb318f30adddcbda4f5e3c1b081 Mon Sep 17 00:00:00 2001 From: Harshad Date: Tue, 10 Feb 2026 23:38:10 +0530 Subject: [PATCH] fix(admin): dashboard data points --- backend/app/routers/health.py | 2 +- frontend/admin.html | 52 +++++++++++++++++++++-------------- 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/backend/app/routers/health.py b/backend/app/routers/health.py index e716f6d..a0e6a81 100644 --- a/backend/app/routers/health.py +++ b/backend/app/routers/health.py @@ -189,7 +189,7 @@ async def get_all_admin_data( query = query.order_by(sort_column.asc()) else: # DEFAULT: Show oldest first when no order is specified - query = query.order_by(Submission.created_at.asc()) + query = query.order_by(Submission.created_at.desc()) # 3. PAGINATION submissions = query.offset(start).limit(length).all() diff --git a/frontend/admin.html b/frontend/admin.html index 54bb552..a4837c8 100644 --- a/frontend/admin.html +++ b/frontend/admin.html @@ -62,7 +62,7 @@ -
+