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

This commit is contained in:
Bryant committed 2023-08-18 14:55:30 +08:00
1 parent 5383e81aae
commit 5e3b1c4bba
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -10,4 +10,4 @@ class UserInfoIn(Schema):
class UserInfoOut(Schema):
nickname = String()
avatar_id = String()
height = Float()
height = Float(allow_nan=True)
+3 -1
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