Task: Do not use comma-separated lists

This commit is contained in:
Tomas Babej 2015-08-06 07:22:11 +02:00
parent c2d2ca0b50
commit e3ef5de16d
2 changed files with 2 additions and 2 deletions

View file

@ -178,7 +178,7 @@ class TaskCache(object):
continue continue
# Get them out of TaskWarrior at once # Get them out of TaskWarrior at once
tasks = tw.tasks.filter(uuid=','.join(uuids)) tasks = tw.tasks.filter(uuid=' '.join(uuids))
# Update each task in the cache # Update each task in the cache
for task in tasks: for task in tasks:

View file

@ -141,7 +141,7 @@ class SelectedTasks(object):
# We might have two same tasks in the range, make sure we do not pass the # We might have two same tasks in the range, make sure we do not pass the
# same uuid twice # same uuid twice
unique_tasks = set(vimwikitask.task['uuid'] for vimwikitask in self.tasks) unique_tasks = set(vimwikitask.task['uuid'] for vimwikitask in self.tasks)
uuids = ','.join(unique_tasks) uuids = ' '.join(unique_tasks)
# Generate the arguments from the modstring # Generate the arguments from the modstring
args = util.tw_modstring_to_args(modstring) args = util.tw_modstring_to_args(modstring)