remove async option

pull/1/head
eric 2016-10-12 16:19:43 -04:00
parent 167c7fc60a
commit 182887fdc2
2 changed files with 4 additions and 4 deletions

View File

@ -234,7 +234,7 @@ def load_doab_edition(title, doab_id, seed_isbn, url, format, rights,
return ebook
def load_doab_records(fname, limit=None, async=True):
def load_doab_records(fname, limit=None):
success_count = 0
ebook_count = 0

View File

@ -8,10 +8,10 @@ from regluit.core.loaders import doab
class Command(BaseCommand):
help = "load doab books"
args = "<limit> <file_name> <async>"
args = "<limit> <file_name>"
def handle(self, limit=None, file_name="../../../bookdata/doab.json", async=True, **options):
def handle(self, limit=None, file_name="../../../bookdata/doab.json", **options):
command_dir = os.path.dirname(os.path.realpath(__file__))
file_path = os.path.join(command_dir, file_name)
doab.load_doab_records(file_path, limit=int(limit), async=async)
doab.load_doab_records(file_path, limit=int(limit))