Skip to content
Snippets Groups Projects
Commit 035fcea3 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Add a print out of number of imported submissions.

parent 7089e79b
No related branches found
No related tags found
No related merge requests found
...@@ -40,8 +40,12 @@ class MigrateCommand(BaseCommand): ...@@ -40,8 +40,12 @@ class MigrateCommand(BaseCommand):
with options['source'] as json_data: with options['source'] as json_data:
self.data = json.load(json_data) self.data = json.load(json_data)
counter = 0
for id in self.data: for id in self.data:
self.process(id) self.process(id)
counter += 1
self.stdout.write(f"Imported {counter} submissions.")
def process(self, id): def process(self, id):
node = self.data[id] node = self.data[id]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment