Fix remove

(forgot to re-add it with the code reduction pull request)
This commit is contained in:
angelblue05 2016-10-10 03:36:02 -05:00
parent 3288d21bef
commit 7149241b38
2 changed files with 10 additions and 7 deletions

View file

@ -106,6 +106,14 @@ class Items(object):
process(item)
self.count += 1
def remove_all(self, item_type, items):
log.debug("Processing removal: %s", items)
process = self._get_func(item_type, "remove")
for item in items:
process(item)
def added(self, items, total=None, update=True):
# Generator for newly added content
if update: