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