From ea7826d3982cce71d25ea9cb319165bf7f8055ce Mon Sep 17 00:00:00 2001 From: j Date: Sat, 23 Jan 2016 18:36:16 +0530 Subject: [PATCH] don't pull changes while import is running --- oml/nodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oml/nodes.py b/oml/nodes.py index eca5978..9a2b975 100644 --- a/oml/nodes.py +++ b/oml/nodes.py @@ -262,6 +262,8 @@ class Node(Thread): }) def pullChanges(self): + if state.activity and state.activity.get('activity') == 'import': + return with db.session(): u = user.models.User.get_or_create(self.user_id) if not self.online or not u.peered: