block: not not

This commit is contained in:
Iain Learmonth 2022-06-18 12:48:53 +01:00
parent 894b26c5f8
commit bc1c8e61f6

View file

@ -86,7 +86,7 @@ class AbstractResource(db.Model): # type: ignore
:param reason: an opaque string that records the deprecation reason
:return: if the proxy was deprecated
"""
if self.deprecated is not None:
if self.deprecated is None:
logging.info("Deprecating %s (reason=%s)", self.brn, reason)
self.deprecated = datetime.utcnow()
self.deprecation_reason = reason