remove async option
parent
167c7fc60a
commit
182887fdc2
|
@ -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
|
||||
|
|
|
@ -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))
|
Loading…
Reference in New Issue