X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/48d272800ebe0432e120ec95c357932a23a2cf21..534403b480471617e4cf509bc085a55eadce1e49:/tasklib/task.py diff --git a/tasklib/task.py b/tasklib/task.py index d5913af..a739d25 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -126,7 +126,10 @@ class TaskResource(SerializingObject): except ValueError: pass - return self._data.get(key) or self._deserialize(key, None) + if key not in self._data: + self._data[key] = self._deserialize(key, None) + + return self._data.get(key) def __setitem__(self, key, value): if key in self.read_only_fields: