From dd61dd7416695c79b658ba3a1dca512b398869e4 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Tue, 6 Mar 2018 20:41:39 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20#112:=20missing=20batch=20ID=C2=A0in=20im?= =?UTF-8?q?port=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../providers/audiofile/management/commands/import_files.py | 3 +-- changes/changelog.d/112.bugfix | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 changes/changelog.d/112.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 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)