mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 15:53:07 +02:00
Task.warrior references replaced by Task.backend
This commit is contained in:
parent
2d7624e491
commit
c0dd9d0621
2 changed files with 3 additions and 3 deletions
|
@ -211,7 +211,7 @@ class ViewPort(object):
|
||||||
# representations of the same task
|
# representations of the same task
|
||||||
matching_vimwikitasks= [
|
matching_vimwikitasks= [
|
||||||
t for t in self.tasks
|
t for t in self.tasks
|
||||||
if t.uuid == vwtask.ShortUUID(task['uuid'], task.warrior)
|
if t.uuid == vwtask.ShortUUID(task['uuid'], task.backend)
|
||||||
]
|
]
|
||||||
|
|
||||||
# Remove the tasks from viewport's set and from buffer
|
# Remove the tasks from viewport's set and from buffer
|
||||||
|
|
|
@ -202,7 +202,7 @@ class VimwikiTask(object):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_task(cls, cache, task):
|
def from_task(cls, cache, task):
|
||||||
self = cls(cache, task['uuid'], task.warrior)
|
self = cls(cache, task['uuid'], task.backend)
|
||||||
self.update_from_task()
|
self.update_from_task()
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
@ -341,7 +341,7 @@ class VimwikiTask(object):
|
||||||
if port:
|
if port:
|
||||||
# The task should have the same source as the viewport has
|
# The task should have the same source as the viewport has
|
||||||
self.tw = port.tw
|
self.tw = port.tw
|
||||||
self.task.warrior = port.tw
|
self.task.backend = port.tw
|
||||||
|
|
||||||
# Any defaults specified should be inherited
|
# Any defaults specified should be inherited
|
||||||
if port.defaults:
|
if port.defaults:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue