update results email for new test + disable new forms
[edumed.git] / wtem / management / commands / wlem_generate_keys.py
index 3fbf107..1e7f558 100644 (file)
@@ -17,7 +17,7 @@ class Command(BaseCommand):
 
         for wlem_contact in query:
             if not Submission.objects.filter(email=wlem_contact.contact).exists():
-                first_name, last_name = wlem_contact.body['nazwisko'].split(' ')
+                first_name, last_name = wlem_contact.body['nazwisko'].split()
                 args = {
                     'email': wlem_contact.contact,
                     'first_name': first_name,