Cache: Select only tasks with existing uuids for updating

This commit is contained in:
Tomas Babej 2015-03-16 00:39:39 +01:00
parent 5cf17abc63
commit da5a17fda4

View file

@ -76,7 +76,8 @@ class TaskCache(object):
def update_tasks(self):
# Select all tasks in the files that have UUIDs
uuids = [t['uuid'] for t in self.task_cache.values() if t.task.saved]
uuids = [t['uuid'] for t in self.vimwikitask_cache.values()
if t is not None and t['uuid'] is not None]
# If no task in the file contains UUID, we have no job here
if not uuids: