def get(self): status = 200 stacks = stacks_handler.get_stacks() if len(stacks) == 0: status = 404 response = {'stacks': [json.loads(stack) for stack in stacks]} respond(self, response, status)
def get(self): status = 200 stacks = stacks_handler.get_stacks() if len(stacks) == 0: status = 404 response = {'stacks': [json.loads(stack) for stack in stacks]} respond(self,response,status)
def get(self): status = 200 log_monitor.install() log_monitor.get_rasps_from_csv() log_monitor.get_stacks_from_csv() stacks = stacks_handler.get_stacks() if len(stacks) == 0: status = 404 response = {'stacks': [json.loads(stack) for stack in stacks]} print(response) respond(self, response, status)