don't store local node info in db

This commit is contained in:
j 2019-02-01 11:57:24 +05:30
commit 5a8e08b2c2
5 changed files with 21 additions and 28 deletions

View file

@ -486,9 +486,6 @@ class Nodes(Thread):
self._q = Queue()
with db.session():
for u in user.models.User.query.filter_by(peered=True):
if 'local' in u.info:
del u.info['local']
u.save()
self.queue('add', u.id)
get_peer(u.id)
for u in user.models.User.query.filter_by(queued=True):