Commit 69ac5720 authored by Christian Rohlfing's avatar Christian Rohlfing
Browse files

Do not take full lastname

parent ed632793
......@@ -147,8 +147,7 @@ Files in output folder {} will be overwritten during this process.
for row in reader:
# Parse required fields from CSV line
name = row[1] # [Lastname], [Firstname]
name = name.replace(", ", "_") # [Lastname]_[Firstname]
name = name.replace(" ", "-")
name = name[0] # Take only first letter of lastname
matnum = row[2] # matriculation number (6-digit)
if not utils.check_matnum(matnum):
raise Exception("Invalid matriculation number found")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment