]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Task: Enumarate only writable fields as modified
authorTomas Babej <tomasbabej@gmail.com>
Thu, 1 Jan 2015 23:23:06 +0000 (00:23 +0100)
committerTomas Babej <tomasbabej@gmail.com>
Fri, 2 Jan 2015 00:08:23 +0000 (01:08 +0100)
tasklib/task.py

index 64c13acc87a0cc9c96b569c50791ecb40e686974..c9fafa667f2376103cdc774f8189c27e23ce74d6 100644 (file)
@@ -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