Skip to content

Commit 5bcf96b

Browse files
committed
Remove pi from cc list
1 parent 495b25c commit 5bcf96b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/coldfront_plugin_cloud/management/commands/fetch_daily_billable_usage.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,5 +294,9 @@ def send_alert_email(cls, allocation: Allocation, resource: Resource, alert_valu
294294
),
295295
sender=EMAIL_SENDER,
296296
receiver_list=[allocation.project.pi.email],
297-
cc=cls.get_managers(allocation),
297+
cc=[
298+
x
299+
for x in cls.get_managers(allocation)
300+
if x != allocation.project.pi.email
301+
],
298302
)

0 commit comments

Comments
 (0)