From 4e8f1430c4c2006332f6ec49a58856a11495f697 Mon Sep 17 00:00:00 2001 From: James Turk Date: Tue, 15 May 2012 17:42:22 -0400 Subject: [PATCH] syntax error --- 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 4693d76..660215f 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).skip(random.randint(0, total-limit)) + docs = docs.limit(limit).skip(random.randint(0, total-limit)) args.immediate = True errors = 0