fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generate keys
[edumed.git]
/
wtem
/
management
/
commands
/
wlem_generate_keys.py
diff --git
a/wtem/management/commands/wlem_generate_keys.py
b/wtem/management/commands/wlem_generate_keys.py
index
3fbf107
..
468641f
100644
(file)
--- a/
wtem/management/commands/wlem_generate_keys.py
+++ b/
wtem/management/commands/wlem_generate_keys.py
@@
-8,6
+8,7
@@
from wtem.models import Submission
class Command(BaseCommand):
def handle(self, *ids, **options):
class Command(BaseCommand):
def handle(self, *ids, **options):
+ return # typo would be disastrous
new = 0
skipped = 0
new = 0
skipped = 0
@@
-17,7
+18,7
@@
class Command(BaseCommand):
for wlem_contact in query:
if not Submission.objects.filter(email=wlem_contact.contact).exists():
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,
args = {
'email': wlem_contact.contact,
'first_name': first_name,