X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/b154d06ff9d6b7fa711607bc02d03fb9db5c6d33..0029595caa78abc831724d22b4c1b45b9867cec0:/wtem/management/commands/wtem_generate_keys.py?ds=inline diff --git a/wtem/management/commands/wtem_generate_keys.py b/wtem/management/commands/wtem_generate_keys.py index 239fe6b..0fc537b 100644 --- a/wtem/management/commands/wtem_generate_keys.py +++ b/wtem/management/commands/wtem_generate_keys.py @@ -5,8 +5,7 @@ from wtem.models import Submission class Command(BaseCommand): - help = 'Sends personalized links to WTEM contestants' - + def handle(self, *args, **options): new = 0 skipped = 0 @@ -21,6 +20,7 @@ class Command(BaseCommand): Submission.create(**args) new += 1 else: + self.stdout.write('skipping ' + student['email'] + ': already exists.') skipped += 1 self.stdout.write('New: ' + str(new) + ', skipped: ' + str(skipped))