feat: add api of body record 6
continuous-integration/drone/push Build is passing Details

This commit is contained in:
BryantHe 2023-08-12 20:34:25 +08:00
parent ffa2f328c9
commit b0400cc617
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ def get_record(record_id):
@login_required
def get_records():
try:
result = rpc.body_record.get_all_by_user(session['user_id'])
results = rpc.body_record.get_all_by_user(session['user_id'])
except Exception as e:
raise BodyRecordNotFound()
return result
return {'records': results}