From: Tomas Babej Date: Fri, 16 Jan 2015 07:06:23 +0000 (+0100) Subject: Task: Change export_data() to expect non-serialized values in self._data dict X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/1e5e9742f8e090bcd7a60276c79aaf5c60db1d0e?ds=sidebyside;hp=-c Task: Change export_data() to expect non-serialized values in self._data dict --- 1e5e9742f8e090bcd7a60276c79aaf5c60db1d0e diff --git a/tasklib/task.py b/tasklib/task.py index ec3de29..fc56a89 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -467,7 +467,9 @@ class Task(TaskResource): """ # We need to remove spaces for TW-1504, use custom separators - return json.dumps(self._data, separators=(',',':')) + data = dict((key, self._serialize(key, value)) + for key, value in six.iteritems(self._data)) + return json.dumps(data, separators=(',',':')) class TaskFilter(SerializingObject): """