feat: add api of body record chart 5
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
5383e81aae
commit
5e3b1c4bba
@ -10,4 +10,4 @@ class UserInfoIn(Schema):
|
|||||||
class UserInfoOut(Schema):
|
class UserInfoOut(Schema):
|
||||||
nickname = String()
|
nickname = String()
|
||||||
avatar_id = String()
|
avatar_id = String()
|
||||||
height = Float()
|
height = Float(allow_nan=True)
|
@ -48,6 +48,8 @@ def get_user_info():
|
|||||||
if user_dict:
|
if user_dict:
|
||||||
result.update(user_dict)
|
result.update(user_dict)
|
||||||
if body_info_dict:
|
if body_info_dict:
|
||||||
result['height'] = body_info_dict['height']
|
result['height'] = body_info_dict.get('height', None)
|
||||||
|
else:
|
||||||
|
result['height'] = None
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user