Refactors how notifications are generated. (#584)

This commit is contained in:
kevgliss
2016-12-12 11:22:49 -08:00
committed by GitHub
parent a5c47e4fdc
commit 03d5a6cfe1
8 changed files with 156 additions and 47 deletions

View File

@ -167,7 +167,7 @@ class Certificate(db.Model):
def expired(cls):
return case(
[
(cls.now_after <= arrow.utcnow(), True)
(cls.not_after <= arrow.utcnow(), True)
],
else_=False
)