fix offset

This commit is contained in:
James Turk 2012-05-15 17:41:55 -04:00
parent 4172b43c0f
commit 7387aab273

View File

@ -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