fix unicode decode error.

This commit is contained in:
Bayarkhuu Bataa 2019-06-11 10:15:37 +08:00
parent d522bacef0
commit 19f3133e92

View File

@ -5,7 +5,7 @@ class User(object):
def __init__(self, uid, name, privilege, password='', group_id='', user_id='', card=0):
self.uid = uid
self.name = str(name)
self.name = u'{0}'.format(name)
self.privilege = privilege
self.password = str(password)
self.group_id = str(group_id)