mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
ViewPort: Use direct filter specification instead of uuid hack
This commit is contained in:
parent
3e5564f596
commit
67981bc9c3
1 changed files with 2 additions and 2 deletions
|
@ -60,9 +60,9 @@ class ViewPort(object):
|
|||
# the filter, and add the tasks that are new. Optionally remove the
|
||||
# tasks that are not longer belonging there.
|
||||
|
||||
# Use uuid filter hack to pass raw filter
|
||||
# Split the filter into CLI tokens and filter by the expression
|
||||
matching_tasks = set(
|
||||
task for task in self.tw.tasks.filter(uuid=self.taskfilter)
|
||||
task for task in self.tw.tasks.filter(*self.taskfilter.split())
|
||||
)
|
||||
|
||||
to_add = matching_tasks - self.tasks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue