From 7387aab273981080e89bc856b8d079df4db76a61 Mon Sep 17 00:00:00 2001 From: James Turk Date: Tue, 15 May 2012 17:41:55 -0400 Subject: [PATCH] fix offset --- oyster/scripts/signal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oyster/scripts/signal.py b/oyster/scripts/signal.py index e4df378..4693d76 100644 --- a/oyster/scripts/signal.py +++ b/oyster/scripts/signal.py @@ -29,7 +29,7 @@ def main(): if args.sample: limit = 100 print 'sampling {0} documents'.format(limit) - docs = docs.limit(limit).offset(random.randint(0, total-limit)) + docs = docs[limit(limit).skip(random.randint(0, total-limit)) args.immediate = True errors = 0