Esempio n. 1
0
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
Esempio n. 2
0
def connect_flows (request):
    controller = ViewController ()
    response = controller.findFlows (request)
    return ViewUtil.get_json_response (response)