paperwork: Fix sending certification emails when shop lead flag not set

This commit is contained in:
Adam Goldsmith 2023-09-26 23:26:18 -04:00
parent ee001b0256
commit eb42e2515b

View File

@ -54,6 +54,7 @@ def department_emails(ordered_queryset):
) )
for department, certifications in certifications_by_department: for department, certifications in certifications_by_department:
if department.shop_lead_flag is not None:
yield make_department_email(department, list(certifications)) yield make_department_email(department, list(certifications))