From 923c5f1a6d2c635f5d2ea7727efd4ab375aa6fe6 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Sun, 13 Aug 2023 21:16:19 +0800 Subject: [PATCH] fix: update body record list api 2 --- app/api/v1/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/v1/record.py b/app/api/v1/record.py index 2b4ebac..cd7675f 100644 --- a/app/api/v1/record.py +++ b/app/api/v1/record.py @@ -45,7 +45,7 @@ def get_record(record_id): @login_required def get_records(query_data): try: - sort = query_data.get('sort', '-') + sort = query_data.get('sort', '-create_time') results = rpc.body_record.get_all_by_user(session['user_id'], sort) except Exception as e: raise BodyRecordNotFound()