fix limit on harvest_online

pull/94/head
eric 2018-12-10 14:30:54 -05:00
parent 260650ba92
commit c6771f2eed
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ class Command(BaseCommand):
new_ebf, new = dl_online(online)
if new_ebf and new:
done += 1
if done > limit:
if done == limit or done == 50:
break
self.stdout.write('harvested {} ebooks'.format(done))
if done == 50:
self.stdout.write('50 is the maximum; repeat to do more')