mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
allow removal of multiple tasks at once
This commit is contained in:
parent
3cf6a20ba4
commit
b8341c48e4
1 changed files with 3 additions and 2 deletions
|
@ -12,8 +12,9 @@ class TaskList(object):
|
|||
def add(self, *args):
|
||||
self.tasks.update(args)
|
||||
|
||||
def remove(self, task):
|
||||
self.tasks.discard(self.get(task))
|
||||
def remove(self, *args):
|
||||
for task in args:
|
||||
self.tasks.discard(self.get(task))
|
||||
|
||||
def replace(self, task, replacement):
|
||||
self.remove(task)
|
||||
|
|
Loading…
Add table
Reference in a new issue