X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/52ee36a43f1ab4c46ab7c7c1fbaba7a1c374d5e3..bee8b11c89922132fde1fab7a297856518caabd5:/tasklib/backends.py?ds=inline diff --git a/tasklib/backends.py b/tasklib/backends.py index adfb9a4..825db82 100644 --- a/tasklib/backends.py +++ b/tasklib/backends.py @@ -155,7 +155,7 @@ class TaskWarrior(object): else: escaped_serialized_value = six.u("'{0}'").format(serialized_value) - format_default = lambda: six.u("{0}:{1}").format(field, + format_default = lambda task: six.u("{0}:{1}").format(field, escaped_serialized_value) format_func = getattr(self, 'format_{0}'.format(field), @@ -186,8 +186,8 @@ class TaskWarrior(object): old_dependencies = task._original_data.get('depends', set()) - added = self['depends'] - old_dependencies - removed = old_dependencies - self['depends'] + added = task['depends'] - old_dependencies + removed = old_dependencies - task['depends'] # Removed dependencies need to be prefixed with '-' return 'depends:' + ','.join( @@ -217,6 +217,8 @@ class TaskWarrior(object): "datetime, its type is not supported: {}" .format(type(value))) + return localized + @property def filter_class(self): return TaskWarriorFilter