mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +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):
|
def add(self, *args):
|
||||||
self.tasks.update(args)
|
self.tasks.update(args)
|
||||||
|
|
||||||
def remove(self, task):
|
def remove(self, *args):
|
||||||
self.tasks.discard(self.get(task))
|
for task in args:
|
||||||
|
self.tasks.discard(self.get(task))
|
||||||
|
|
||||||
def replace(self, task, replacement):
|
def replace(self, task, replacement):
|
||||||
self.remove(task)
|
self.remove(task)
|
||||||
|
|
Loading…
Add table
Reference in a new issue