From 9742552c5fa84b7a2b42dc4696622d248c09b4ee Mon Sep 17 00:00:00 2001 From: SouthFox Date: Mon, 31 Jul 2023 06:22:51 +0800 Subject: [PATCH] [perf] desc order index page --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 99675ac..6fabb6c 100644 --- a/app/main.py +++ b/app/main.py @@ -86,7 +86,7 @@ async def index( select(models.OutboxObject).where( models.OutboxObject.ap_type == "Note", models.OutboxObject.is_deleted.is_(False), - ) + ).order_by(models.OutboxObject.created_at.desc()) ) ).all()