Merge branch '494-async-reserved-keyword' into 'develop'

Resolve "CLI music import fails"

Closes #494

See merge request funkwhale/funkwhale!384
environments/review-front-funk-48spty/deployments/33
Eliot Berriot 2018-08-21 16:55:39 +00:00
commit 15cd5e9c68
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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)):

Wyświetl plik

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