Merge branch '112-batch-id' into 'develop'
Fix #112: missing batch ID in import output Closes #112 See merge request funkwhale/funkwhale!80
This commit is contained in:
commit
88ea79ab0b
|
@ -81,13 +81,12 @@ class Command(BaseCommand):
|
||||||
raise CommandError("Import cancelled.")
|
raise CommandError("Import cancelled.")
|
||||||
|
|
||||||
batch = self.do_import(matching, user=user, options=options)
|
batch = self.do_import(matching, user=user, options=options)
|
||||||
|
|
||||||
message = 'Successfully imported {} tracks'
|
message = 'Successfully imported {} tracks'
|
||||||
if options['async']:
|
if options['async']:
|
||||||
message = 'Successfully launched import for {} tracks'
|
message = 'Successfully launched import for {} tracks'
|
||||||
self.stdout.write(message.format(len(matching)))
|
self.stdout.write(message.format(len(matching)))
|
||||||
self.stdout.write(
|
self.stdout.write(
|
||||||
"For details, please refer to import batch #".format(batch.pk))
|
"For details, please refer to import batch #{}".format(batch.pk))
|
||||||
|
|
||||||
@transaction.atomic
|
@transaction.atomic
|
||||||
def do_import(self, matching, user, options):
|
def do_import(self, matching, user, options):
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Added missing batch id in output during import (#112)
|
Loading…
Reference in New Issue