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 17a199473..598e0f156 100644 --- a/api/funkwhale_api/providers/audiofile/management/commands/import_files.py +++ b/api/funkwhale_api/providers/audiofile/management/commands/import_files.py @@ -81,13 +81,12 @@ class Command(BaseCommand): raise CommandError("Import cancelled.") batch = self.do_import(matching, user=user, options=options) - message = 'Successfully imported {} tracks' if options['async']: message = 'Successfully launched import for {} tracks' self.stdout.write(message.format(len(matching))) 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 def do_import(self, matching, user, options): diff --git a/changes/changelog.d/112.bugfix b/changes/changelog.d/112.bugfix new file mode 100644 index 000000000..ffd2f639c --- /dev/null +++ b/changes/changelog.d/112.bugfix @@ -0,0 +1 @@ +Added missing batch id in output during import (#112)