Commit 1dfce1c2 authored by Olivier's avatar Olivier
Browse files

M4: simpler file names, better email title

parent 033fe089
......@@ -60,11 +60,11 @@ with open(input_csv_path, newline='') as f:
custom_ID_G.append(row[4])
for ID in custom_ID_A:
attachment_name = "assignment_a01_ID_"+ID+".pdf"
attachment_name = "assignment1_"+ID+".pdf"
attachments.append(attachment_name)
# Make sure that all the attachments are in the script_input folder by looking
# for a file with the name "assignment_a01_ID_XXXXXXXXX.pdf"
# for a file with the correct file name
for i in range(0, len(custom_ID_A)):
file_to_search = pathlib.Path(assignments_pdfs_path+attachments[i])
if file_to_search.exists() != True:
......@@ -113,7 +113,7 @@ for i in range(0, len(names)):
receiver_email = emails[i]
# Email subject
subject = "Custom Assignment #1 "+custom_ID_A[i]
subject = "Custom Assignment #1 ID_"+custom_ID_A[i]
# Email body
body = email_bodies[i]
......
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