feat: add api of body record 10
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
226e5c6891
commit
019ea67043
@ -20,7 +20,7 @@ def add_record(json_data):
|
|||||||
weight=json_data['weight'],
|
weight=json_data['weight'],
|
||||||
bmi=json_data['bmi'])
|
bmi=json_data['bmi'])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise AddBodyRecordError()
|
raise AddBodyRecordError(extra_data={'error_docs': str(e)})
|
||||||
return {'msg': 'add body record success'}
|
return {'msg': 'add body record success'}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user