From 19ace8dd40babd9e5169b03d1627a5edae8e92fd Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Tue, 21 Aug 2018 18:30:31 +0200 Subject: [PATCH] Fixed #494: CLI importer syntax error because of async reserved keyword usage --- .../providers/audiofile/management/commands/import_files.py | 4 ++-- changes/changelog.d/494.bugfix | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changes/changelog.d/494.bugfix diff --git a/api/funkwhale_api/providers/audiofile/management/commands/import_files.py b/api/funkwhale_api/providers/audiofile/management/commands/import_files.py index 2aba0c145..625f9c2f0 100644 --- a/api/funkwhale_api/providers/audiofile/management/commands/import_files.py +++ b/api/funkwhale_api/providers/audiofile/management/commands/import_files.py @@ -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)): diff --git a/changes/changelog.d/494.bugfix b/changes/changelog.d/494.bugfix new file mode 100644 index 000000000..4fc77f858 --- /dev/null +++ b/changes/changelog.d/494.bugfix @@ -0,0 +1 @@ +Fixed CLI importer syntax error because of async reserved keyword usage (#494)