Skip to content

Commit

Permalink
Update submit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dthoward96 authored May 20, 2024
1 parent 0e90b30 commit 92a2b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def sendmail(database, submission_name, submission_dir, config_dict, test):
msg['To'] = ", ".join(to_email)
if len(cc_email) != 0:
msg['Cc'] = ", ".join(cc_email)
with open(os.path.join(submission_dir, submission_name + ".sqn"), 'rb') as file_input:
with open(os.path.join(submission_files_dir, submission_name + ".sqn"), 'rb') as file_input:
part = MIMEApplication(file_input.read(), Name=submission_name + ".sqn")
part['Content-Disposition'] = "attachment; filename=" + submission_name + ".sqn"
msg.attach(part)
Expand Down

0 comments on commit 92a2b6a

Please sign in to comment.