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()