VimwikiTask: Refresh upon saving to accomodate changes done by hooks

This commit is contained in:
Tomas Babej 2015-01-11 19:17:16 +01:00
parent 6cfafdee5d
commit bae56aa1c8

View file

@ -204,6 +204,9 @@ class VimwikiTask(object):
self.task['project'] = self.project
self.task.save()
# If we saved the task, we need to update. Hooks may have chaned data.
self.update_from_tw(refresh=False)
# Load the UUID
if not self.uuid:
self.uuid = self.task['uuid']