Refactors how notifications are generated. (#584)
This commit is contained in:
@ -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
|
||||
)
|
||||
|
Reference in New Issue
Block a user