This commit is contained in:
j 2014-05-25 22:58:53 +02:00
parent 833faa5a6c
commit 81279f4ed2
2 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class Changelog(db.Model):
c.data = data
c.sig = sig
args = json.loads(data)
logger.debug('apply change %s', args)
logger.debug('apply change from %s: %s', user.name, args)
if getattr(c, 'action_' + args[0])(user, timestamp, *args[1:]):
logger.debug('change applied')
db.session.add(c)

View File

@ -111,6 +111,7 @@ class LocalNodesBase(Thread):
u = user.models.User.get_or_create(data['id'])
u.info['username'] = data['username']
u.info['local'] = data
u.update_name()
u.save()
state.nodes.queue('add', u.id)
self.send()