Merge branch 'master' into dependabot/pip/bleach-3.1.2
This commit is contained in:
commit
88b14d6ad6
|
@ -321,7 +321,8 @@ class Certificate(db.Model):
|
||||||
|
|
||||||
@hybrid_property
|
@hybrid_property
|
||||||
def expired(self):
|
def expired(self):
|
||||||
if self.not_after <= arrow.utcnow():
|
# can't compare offset-naive and offset-aware datetimes
|
||||||
|
if arrow.Arrow.fromdatetime(self.not_after) <= arrow.utcnow():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@expired.expression
|
@expired.expression
|
||||||
|
|
Loading…
Reference in New Issue