From bc1c8e61f62c05a7e1a388d80c279b5494e79b57 Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Sat, 18 Jun 2022 12:48:53 +0100 Subject: [PATCH] block: not not --- app/models/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/__init__.py b/app/models/__init__.py index 76a959a..523d5ac 100644 --- a/app/models/__init__.py +++ b/app/models/__init__.py @@ -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