def get_flows (request): controller = ViewController () flows = controller.findFlows (request) for flow in flows: flowId = flow ['flow'] flowId = flowId.replace ('-', '_').replace ('.grayson_upk', '') flow ['flow'] = flowId flow ['runCount'] = len (flow ['runs']) return flows
def connect_flows (request): controller = ViewController () response = controller.findFlows (request) return ViewUtil.get_json_response (response)