This commit is contained in:
j 2019-02-01 12:56:26 +05:30
parent 79b5818cc4
commit ca32106e2b

View file

@ -57,7 +57,7 @@ class User(db.Model):
user = cls(id=id, peered=False, online=False) user = cls(id=id, peered=False, online=False)
user.info = {} user.info = {}
if state.nodes and state.nodes.local and id in state.nodes.local: if state.nodes and state.nodes.local and id in state.nodes.local:
user.info['username'] = state.nodes.localo[id]['username'] user.info['username'] = state.nodes.local[id]['username']
user.update_name() user.update_name()
user.save() user.save()
return user return user