X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/9acc463bf53a03a41b6d8539ebd295b3603d2589..b7186a04cfecae9de25444ac9137f01f11d64db9:/tasklib/task.py diff --git a/tasklib/task.py b/tasklib/task.py index f21ea43..ec3de29 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -280,7 +280,7 @@ class Task(TaskResource): yield key @property - def _is_modified(self): + def modified(self): return bool(list(self._modified_fields)) @property @@ -373,7 +373,7 @@ class Task(TaskResource): self.refresh(only_fields=['status']) def save(self): - if self.saved and not self._is_modified: + if self.saved and not self.modified: return args = [self['uuid'], 'modify'] if self.saved else ['add']