fix offset
This commit is contained in:
parent
4172b43c0f
commit
7387aab273
@ -29,7 +29,7 @@ def main():
|
|||||||
if args.sample:
|
if args.sample:
|
||||||
limit = 100
|
limit = 100
|
||||||
print 'sampling {0} documents'.format(limit)
|
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
|
args.immediate = True
|
||||||
|
|
||||||
errors = 0
|
errors = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user