fix: update body record list api 2
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
3a871e5c74
commit
923c5f1a6d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue