block: not not
This commit is contained in:
parent
894b26c5f8
commit
bc1c8e61f6
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class AbstractResource(db.Model): # type: ignore
|
||||||
:param reason: an opaque string that records the deprecation reason
|
:param reason: an opaque string that records the deprecation reason
|
||||||
:return: if the proxy was deprecated
|
: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)
|
logging.info("Deprecating %s (reason=%s)", self.brn, reason)
|
||||||
self.deprecated = datetime.utcnow()
|
self.deprecated = datetime.utcnow()
|
||||||
self.deprecation_reason = reason
|
self.deprecation_reason = reason
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue