end current import task

This commit is contained in:
j 2016-01-25 17:16:19 +05:30
parent b5be527aca
commit 27908619ef

View file

@ -215,6 +215,8 @@ def run_import(options=None):
if state.activity.get('cancel'):
state.activity = {}
return
if not state.tasks.connected:
return
with db.session():
if listname and listitems:
l = List.get(settings.USER_ID, listname)