Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Add jobnum to output filename and email subject line #1

Open
jwkai opened this issue Feb 16, 2022 · 0 comments
Open

Add jobnum to output filename and email subject line #1

jwkai opened this issue Feb 16, 2022 · 0 comments

Comments

@jwkai
Copy link
Contributor

jwkai commented Feb 16, 2022

Every output file has the same filename (unique_sequence_data.xlsx), making it easy to misplace files. Moreover, the output files are delivered via email, and emails all contain identical text, so a user cannot easily search their inbox for a specific output file.

The solution is to add a jobnum field to the HTML page, and including this in the output filename and email subject line. A timestamp in the filename could also help.

Filename is defined here:

XLSX_FILENAME = "unique_sequence_data"

Email text is generated here:
if mailer.send_sfu_email("unique_sequence_finder", email_address_string, "Unique Sequence Finder Results", msg_body, [xlsx_file]) == 0:
website.send(( "An email has been sent to <b>{}</b> with a full table of results."
"<br>Make sure <b>{}</b> is spelled correctly." ).format(email_address_string, email_address_string))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant