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,7 +54,8 @@ def department_emails(ordered_queryset):
) )
for department, certifications in certifications_by_department: for department, certifications in certifications_by_department:
yield make_department_email(department, list(certifications)) if department.shop_lead_flag is not None:
yield make_department_email(department, list(certifications))
def make_member_email(member, certifications): def make_member_email(member, certifications):