fix: update body record list api 2
continuous-integration/drone/push Build is passing Details

This commit is contained in:
BryantHe 2023-08-13 21:16:19 +08:00
parent 3a871e5c74
commit 923c5f1a6d
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def get_record(record_id):
@login_required @login_required
def get_records(query_data): def get_records(query_data):
try: 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) results = rpc.body_record.get_all_by_user(session['user_id'], sort)
except Exception as e: except Exception as e:
raise BodyRecordNotFound() raise BodyRecordNotFound()