Commit 797d149c authored by Olivier's avatar Olivier

M2 bugfix calling up student full name

The variable full_name must be defined again in the solution tex
editing loop, else its last value in the first loop is carried
over.
parent 1dfce1c2
......@@ -127,6 +127,7 @@ for i in range (0,len(first_names)): # For each student
# Mark assignment with the student first name
temp_sol = temp_sol.replace(marker_firstname, str(first_names[i]))
# Mark solution with the student name
full_name = str(first_names[i]) + ' ' + str(last_names[i])
temp_sol = temp_sol.replace(marker_fullname, full_name)
# Produce the custom tex file for each student
with open ((output_solution_path+custom_ID_G[i]+'.tex'),'w', encoding="utf-8") as f:
......
Markdown is supported
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