X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/32554e98936380bdbb26588852c3896e2b23c9ee..6d756a70ec4367515bf0ec9eed7ef5b45418727d:/tasklib/task.py?ds=sidebyside diff --git a/tasklib/task.py b/tasklib/task.py index 1b337ba..01a0bcc 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -359,7 +359,7 @@ class Task(TaskResource): def remove_annotation(self, annotation): if not self.saved: - raise Task.NotSaved("Task needs to be saved to add annotation") + raise Task.NotSaved("Task needs to be saved to remove annotation") if isinstance(annotation, TaskAnnotation): annotation = annotation['description'] @@ -433,7 +433,7 @@ class TaskFilter(SerializingObject): if key == 'uuid': self.filter_params.insert(0, value) else: - self.filter_params.append('{0}:{1}'.format(key, value)) + self.filter_params.append("{0}:'{1}'".format(key, value)) def get_filter_params(self): return [f for f in self.filter_params if f]