Added state to email subject. Differentiate between the information and the actual deletion email

This commit is contained in:
Charles Coulombe
2025-08-25 15:38:57 -04:00
parent 651426ae39
commit f0e63ff652
@@ -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}")