Skip to content
Snippets Groups Projects
Commit 53512cb2 authored by Jan Maximilian Michal's avatar Jan Maximilian Michal
Browse files

Minor tweak to convert script

parent 5ceb60d2
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
The json output will look like this: The json output will look like this:
{ {
"AF12345678": { <<--- all uppercase letter of the name + username/matrikel_no "max.mustermann": { <<--- OR all uppercase letter of the name + username/matrikel_no
"matrikel_no": "12345678", "matrikel_no": "12345678",
"name": "Mustermann, Max", "name": "Mustermann, Max",
"task_list": { "task_list": {
...@@ -105,7 +105,6 @@ if args.NUMBER_OF_TASKS: ...@@ -105,7 +105,6 @@ if args.NUMBER_OF_TASKS:
for (user, *task_list) in sorted(root, key=lambda u: u[0].name): for (user, *task_list) in sorted(root, key=lambda u: u[0].name):
assert len(task_list) == args.NUMBER_OF_TASKS * 2 assert len(task_list) == args.NUMBER_OF_TASKS * 2
usernames = {}
if args.usernames: if args.usernames:
with open(args.usernames) as data: with open(args.usernames) as data:
mat_to_email = json.JSONDecoder().decode(data.read()) mat_to_email = json.JSONDecoder().decode(data.read())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment