mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
Cache: Select only tasks with existing uuids for updating
This commit is contained in:
parent
5cf17abc63
commit
da5a17fda4
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue