Skip revoked certs when looking for certs to notify

This commit is contained in:
Jasmine Schladen 2020-10-23 09:42:03 -07:00
parent 233f9768e8
commit a5cea4fb9a

View File

@ -42,6 +42,7 @@ def get_certificates(exclude=None):
.filter(Certificate.not_after <= max)
.filter(Certificate.notify == True)
.filter(Certificate.expired == False)
.filter(Certificate.revoked == False)
) # noqa
exclude_conditions = []