feat: add api of body record chart 5
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5383e81aae
commit
5e3b1c4bba
|
@ -10,4 +10,4 @@ class UserInfoIn(Schema):
|
|||
class UserInfoOut(Schema):
|
||||
nickname = String()
|
||||
avatar_id = String()
|
||||
height = Float()
|
||||
height = Float(allow_nan=True)
|
|
@ -48,6 +48,8 @@ def get_user_info():
|
|||
if user_dict:
|
||||
result.update(user_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
|
||||
|
|
Loading…
Reference in New Issue