From: Tomas Babej Date: Thu, 1 Jan 2015 23:23:06 +0000 (+0100) Subject: Task: Enumarate only writable fields as modified X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/07620d4b006b17a88e694f50224c4c1b25750348?hp=1e2987ad784dbb5145fc4de35018c2cdb6cc6cd5 Task: Enumarate only writable fields as modified --- diff --git a/tasklib/task.py b/tasklib/task.py index 64c13ac..c9fafa6 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -153,7 +153,8 @@ class Task(TaskResource): @property def _modified_fields(self): - for key in self._data.keys(): + writable_fields = set(self._data.keys()) - set(self.read_only_fields) + for key in writable_fields: if self._data.get(key) != self._original_data.get(key): yield key