Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Georg Abenthung
funkwhale
Commits
19ace8dd
Verified
Commit
19ace8dd
authored
Aug 21, 2018
by
Eliot Berriot
Browse files
Fixed #494: CLI importer syntax error because of async reserved keyword usage
parent
d8db3816
Changes
2
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/providers/audiofile/management/commands/import_files.py
View file @
19ace8dd
...
...
@@ -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
)):
...
...
changes/changelog.d/494.bugfix
0 → 100644
View file @
19ace8dd
Fixed CLI importer syntax error because of async reserved keyword usage (#494)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment