zenodo_accessrequests/models.py
def revoke(self):
        """Revoken a secret link."""
        if self.revoked_at is None:
            with db.session.begin_nested():
                self.revoked_at = datetime.utcnow()
            link_revoked.send(self)
            return True
        return False
def revoke(self):
        """Revoken a secret link."""
        if self.revoked_at is None:
            with db.session.begin_nested():
                self.revoked_at = datetime.utcnow()
            link_revoked.send(self)
            return True
        return False
Revoken a secret link.