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 17a199473de9a8f0ec82da1d44b5ae74a481f31c..598e0f156e7921c747d8ffd1a857e80e362eb8ee 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 0000000000000000000000000000000000000000..ffd2f639c75416c15927528d88b35582c26d9529 --- /dev/null +++ b/changes/changelog.d/112.bugfix @@ -0,0 +1 @@ +Added missing batch id in output during import (#112)