use the already written darned function

This commit is contained in:
Martin A. Brown 2016-03-09 20:53:21 -08:00
parent 7e3fa95813
commit e2532d4ffb
1 changed files with 4 additions and 7 deletions

View File

@ -426,13 +426,10 @@ def collectWorkset(config, args):
inv = None
if stati:
oldsize = len(workset)
for status in stati:
collection = getattr(inv, status)
workset.update(collection.values())
growth = len(workset) - oldsize
if growth:
logger.info("Added %d docs, found by status class .", growth)
docs = getDocumentsByStatus(inv.all.values(), stati)
workset.update(docs)
if docs:
logger.info("Added %d docs, found by status class .", len(docs))
unknownargs = None
if remainder: