mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
Vwtask: Remove redundant tainted property
This commit is contained in:
parent
f79734aed9
commit
6edcd3d702
1 changed files with 1 additions and 5 deletions
|
@ -265,10 +265,6 @@ class VimwikiTask(object):
|
|||
def priority_to_tw_format(self):
|
||||
return convert_priority_to_tw_format(self['priority'])
|
||||
|
||||
@property
|
||||
def tainted(self):
|
||||
return self.task.modified or self.add_dependencies
|
||||
|
||||
def save_to_tw(self):
|
||||
# This method persumes all the dependencies have been created at the
|
||||
# point it was called, hence move set the dependencies for the underlying
|
||||
|
@ -278,7 +274,7 @@ class VimwikiTask(object):
|
|||
|
||||
# Push the values to the Task only if the Vimwiki representation
|
||||
# somehow differs
|
||||
if self.tainted or not self.uuid:
|
||||
if self.task.modified or not self.uuid:
|
||||
self.task.save()
|
||||
|
||||
# If task was first time saved now, add it to the cache and remove
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue