mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Added state to email subject. Differentiate between the information and the actual deletion email
This commit is contained in:
@@ -260,7 +260,8 @@ def administrative_delete_datasets(
|
||||
emailtemplate = Template(filename=template_file)
|
||||
for email, dataset_list in user_notifications.items():
|
||||
msgtext = emailtemplate.render(email=email, datasets=dataset_list, cutoff=cutoff_days)
|
||||
subject = f"Galaxy Server Cleanup - {len(dataset_list)} datasets DELETED"
|
||||
state = "" if info_only or email_only else " DELETED"
|
||||
subject = f"Galaxy Server Cleanup - {len(dataset_list)} datasets{state}"
|
||||
fromaddr = config.email_from
|
||||
print()
|
||||
print(f"From: {fromaddr}")
|
||||
|
||||
Reference in New Issue
Block a user