From 035fcea319b24e05d22e107c57e643039343b623 Mon Sep 17 00:00:00 2001
From: Fredrik Jonsson <frjo@xdeb.org>
Date: Fri, 24 Aug 2018 13:17:52 +0200
Subject: [PATCH] Add a print out of number of imported submissions.

---
 opentech/apply/funds/management/commands/migration_base.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/opentech/apply/funds/management/commands/migration_base.py b/opentech/apply/funds/management/commands/migration_base.py
index 08c9e13f8..93bcb6e76 100644
--- a/opentech/apply/funds/management/commands/migration_base.py
+++ b/opentech/apply/funds/management/commands/migration_base.py
@@ -40,8 +40,12 @@ class MigrateCommand(BaseCommand):
         with options['source'] as json_data:
             self.data = json.load(json_data)
 
+            counter = 0
             for id in self.data:
                 self.process(id)
+                counter += 1
+
+            self.stdout.write(f"Imported {counter} submissions.")
 
     def process(self, id):
         node = self.data[id]
-- 
GitLab