Fixed #494: CLI importer syntax error because of async reserved keyword usage

This commit is contained in:
Eliot Berriot 2018-08-21 18:30:31 +02:00
parent d8db38167e
commit 19ace8dd40
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 3 additions and 2 deletions

View File

@ -216,8 +216,8 @@ class Command(BaseCommand):
message = "{i}/{total} Launching import for {path}..."
# we create an import batch binded to the user
async = options["async"]
import_handler = tasks.import_job_run.delay if async else tasks.import_job_run
async_ = options["async"]
import_handler = tasks.import_job_run.delay if async_ else tasks.import_job_run
batch = user.imports.create(source="shell")
errors = []
for i, path in list(enumerate(paths)):

View File

@ -0,0 +1 @@
Fixed CLI importer syntax error because of async reserved keyword usage (#494)