This commit is contained in:
1 parent
5383e81aae
commit
5e3b1c4bba
2 files changed
+4
-2
No files matched your search
@@ -10,4 +10,4 @@ class UserInfoIn(Schema):
|
||||
class UserInfoOut(Schema):
|
||||
nickname = String()
|
||||
avatar_id = String()
|
||||
height = Float()
|
||||
height = Float(allow_nan=True)
|
||||
+3
-1
@@ -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
|
||||
Reference in new issue
Block a user