paperwork: Fix sending certification emails when shop lead flag not set
This commit is contained in:
parent
ee001b0256
commit
eb42e2515b
@ -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))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user