@GET('^/api/v1/shutdown')
    def shutdown(self, request):
        session = request.getSession()
        if self.authenticated_sessions not in session and request.getHost().host != "127.0.0.1":
            session.expire()
            request.setResponseCode(401)
            request.write('<html><body><div><span style="color:red">Authorization Error</span></div>'
                          '<h2>Permission Denied</h2></body></html>')
            request.finish()
            return server.NOT_DONE_YET
        else:
            for vendor in self.protocol.vendors.values():
                self.db.vendors.save_vendor(vendor.id.encode("hex"), vendor.getProto().SerializeToString())
            PortMapper().clean_my_mappings(self.kserver.node.port)
            self.protocol.shutdown()
            reactor.stop()
            return
dataset/ETHPy150Open OpenBazaar/OpenBazaar-Server/api/restapi.py/OpenBazaarAPI.shutdown/swapped operands of `not in`