From ad8e71d2e16b27a24e7cd537e0d3dce7b219236d Mon Sep 17 00:00:00 2001 From: GinHa <15201596918@163.com> Date: Fri, 5 Jun 2026 12:51:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AE=A1=E7=90=86=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E4=BA=A4=E6=98=93=E6=B5=81=E6=B0=B4=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=8E=92=E5=BA=8F=E6=98=BE=E7=A4=BABUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video-gen-api/app/api/v1/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video-gen-api/app/api/v1/admin.py b/video-gen-api/app/api/v1/admin.py index 7dbb9847..bbf732b6 100644 --- a/video-gen-api/app/api/v1/admin.py +++ b/video-gen-api/app/api/v1/admin.py @@ -253,7 +253,7 @@ async def list_credit_records( """List all credit transaction records with filters.""" query = select(CreditRecord, User.username).join( User, CreditRecord.user_id == User.id, isouter=True - ).order_by(CreditRecord.created_at.desc()) + ).order_by(CreditRecord.created_at.desc(), CreditRecord.id.desc()) count_query = select(func.count(CreditRecord.id))