fix empty versions getting tracked
This commit is contained in:
parent
ec9b19d77f
commit
5e668b3b21
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user