VimwikiTask: Do not refresh task when saving

It is not necessary, since task's UUID is refreshed upon saving
by tasklib.
This commit is contained in:
Tomas Babej 2014-12-29 10:34:44 +01:00
parent 837e4d87e7
commit 9f23ec01d5

View file

@ -132,13 +132,8 @@ class VimwikiTask(object):
self.task.save() self.task.save()
# Load the UUID # Load the UUID
self.task.refresh() if not self.uuid:
self.uuid = self.task['uuid'] self.uuid = self.task['uuid']
vim.command('echom "uuid: %s"' % self.uuid)
# Make parent task dependant on this task
if self.parent:
self.parent['depends'] = self.task['uuid']
# Mark task as done. This works fine with already completed tasks. # Mark task as done. This works fine with already completed tasks.
if self.completed: if self.completed: