From 5e668b3b213688c070a2efa9a8b40d2079425875 Mon Sep 17 00:00:00 2001 From: James Turk Date: Thu, 10 May 2012 17:11:54 -0400 Subject: [PATCH] fix empty versions getting tracked --- oyster/scripts/signal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oyster/scripts/signal.py b/oyster/scripts/signal.py index 9284d77..c6a6608 100644 --- a/oyster/scripts/signal.py +++ b/oyster/scripts/signal.py @@ -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: