Skip to content
Snippets Groups Projects
Commit c8d6f62a authored by Nathan Hertz's avatar Nathan Hertz
Browse files

Merge branch 'release/WS-0.1' of https://open-bitbucket.nrao.edu/scm/ssa/data into release/WS-0.1

parents 76146e7f 947f0704
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ class WorkflowRestService:
return self.request.info.all_workflows()
@view_config(request_method='POST', route_name='create_workflow')
def create_workflow(self, name: str, args: str):
def create_workflow(self):
"""
Create a new workflow request from the name/arguments supplied.
......@@ -59,8 +59,8 @@ class WorkflowRestService:
# all we should have to do here is take the WorkflowRequest from the context and
# hand it to WorkflowInfo to save it, but we're still conflating
# workflows and workflow requests right now
req = self.request.context
request = self.request.info.create_workflow_request(workflow_name=name, argument=args)
request = self.request.workflows.create_workflow_request(
workflow_name=self.request.GET.get('name'), argument=self.request.GET.getall('args'))
return request
@view_config(request_method='GET', route_name='workflow')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment