feat: add api of body record 10
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
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…
Reference in New Issue