mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-23 11:27:46 +02:00
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:
parent
837e4d87e7
commit
9f23ec01d5
1 changed files with 2 additions and 7 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue