fix empty versions getting tracked

This commit is contained in:
James Turk 2012-05-10 17:11:54 -04:00
parent ec9b19d77f
commit 5e668b3b21

View File

@ -15,7 +15,9 @@ def main():
args = parser.parse_args()
docs = kernel.db.tracked.find({'doc_class': args.doc_class}, timeout=False)
docs = kernel.db.tracked.find({'doc_class': args.doc_class,
'versions': {'$ne': []}
}, timeout=False)
print '%s docs in %s' % (docs.count(), args.doc_class)
for doc in docs: