From: Tomas Babej Date: Sun, 11 Jan 2015 14:08:00 +0000 (+0100) Subject: Task: Add comment to stress importance of refreshing after save X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/e246808b933d3930e4e3cc18a7e552b5f42148db?hp=252fcc58df50a2d70aaaaf90f119d7e76da78ce3 Task: Add comment to stress importance of refreshing after save --- diff --git a/tasklib/task.py b/tasklib/task.py index 4dab528..0a74f6c 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -390,6 +390,9 @@ class Task(TaskResource): # Circumvent the ID storage, since ID is considered read-only self._data['id'] = int(id_lines[0].split(' ')[2].rstrip('.')) + # Refreshing is very important here, as not only modification time + # is updated, but arbitrary attribute may have changed due hooks + # altering the data before saving self.refresh() def add_annotation(self, annotation):