From ad4bd814ff3b59f5f5d4570839846d2d3e02e681 Mon Sep 17 00:00:00 2001 From: Sajid Ali Date: Thu, 2 Apr 2026 11:40:07 -0400 Subject: [PATCH 1/2] Why did Python decide mutable initial args was ever a good idea? --- coldfront/core/utils/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coldfront/core/utils/mail.py b/coldfront/core/utils/mail.py index 9fd06168a4..f72ad7f0f5 100644 --- a/coldfront/core/utils/mail.py +++ b/coldfront/core/utils/mail.py @@ -21,7 +21,7 @@ CENTER_BASE_URL = import_from_settings("CENTER_BASE_URL") -def send_email(subject, body, sender, receiver_list, cc=[]): +def send_email(subject, body, sender, receiver_list, cc=None): """Helper function for sending emails""" if not EMAIL_ENABLED: From 84f47e3202450d86ddd81a461589b0a28d5c7ca6 Mon Sep 17 00:00:00 2001 From: Sajid Ali Date: Thu, 2 Apr 2026 11:42:41 -0400 Subject: [PATCH 2/2] email templates update with new docs --- coldfront/templates/email/request_to_add_grants.txt | 3 +-- coldfront/templates/email/request_to_add_publications.txt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/coldfront/templates/email/request_to_add_grants.txt b/coldfront/templates/email/request_to_add_grants.txt index 0e5180b21b..00e69dd1f9 100644 --- a/coldfront/templates/email/request_to_add_grants.txt +++ b/coldfront/templates/email/request_to_add_grants.txt @@ -5,8 +5,7 @@ The following projects within the HPC projects portal currently have no grants a Project Title: {{ project_key }} Project URL: {{ project_url }} {% endfor %} - -Please add grants that are associated with your project(s) as it will enable us to justify the necessity of offering the HPC service. +Please add grants that are associated with your project(s) as it will enable us to justify the necessity of offering the HPC service. You can find detailed instructions at https://services.rt.nyu.edu/docs/hpc/getting_started/adding_publications_grants/#enter-grants Thank you, {{ signature }} diff --git a/coldfront/templates/email/request_to_add_publications.txt b/coldfront/templates/email/request_to_add_publications.txt index d0aa5534fc..5bc74c0694 100644 --- a/coldfront/templates/email/request_to_add_publications.txt +++ b/coldfront/templates/email/request_to_add_publications.txt @@ -5,8 +5,7 @@ Your project(s) within the HPC projects portal currently have no publications as Project Title: {{ project_key }} Project URL: {{ project_url }} {% endfor %} - -Please add publications that have resulted from the use of HPC resources for this project as it will enable us to justify the necessity of offering the HPC service. +Please add publications that have resulted from the use of HPC resources for this project as it will enable us to justify the necessity of offering the HPC service. You can find detailed instructions at https://services.rt.nyu.edu/docs/hpc/getting_started/adding_publications_grants/#enter-publications Thank you, {{ signature }}