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

This commit is contained in:
BryantHe 2023-08-18 14:55:30 +08:00
parent 5383e81aae
commit 5e3b1c4bba
2 changed files with 4 additions and 2 deletions

View File

@ -10,4 +10,4 @@ class UserInfoIn(Schema):
class UserInfoOut(Schema):
nickname = String()
avatar_id = String()
height = Float()
height = Float(allow_nan=True)

View File

@ -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