Skip to content
Snippets Groups Projects
Commit 1f889005 authored by robinwilliam.hundt's avatar robinwilliam.hundt
Browse files

Merge branch 'master' into 'master'

Fixed bug in anonymisation function

See merge request !2
parents 0489b8d1 ddb373b6
No related branches found
No related tags found
1 merge request!2Fixed bug in anonymisation function
Pipeline #82157 passed
......@@ -233,11 +233,11 @@ def do_anonymous(students: Dict[str, Union[str, List]]):
reverser = {get_random_xkcd_identifier(): s for s in students}
students_anonymous = [{
'fullname': ' '.join(w[0].capitalize() + w[1:]
for w in r.split(DELIMITER)),
'identifier': r,
'username': r,
for w in pseudo_identifier.split(DELIMITER)),
'identifier': pseudo_identifier,
'username': pseudo_identifier,
'submissions': student['submissions']
} for r, student in zip(reverser, students)]
} for pseudo_identifier, student in reverser.items()]
with open(args.personal_secret_table, 'w') as out:
print('key;previous identifier;fullname', file=out)
......
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