Skip to content
Snippets Groups Projects

uniform_weblog_digging: Strings where strings are wanted, and the extended...

Merged Jim Sheckard requested to merge uniform_weblog_fixes into main
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -182,7 +182,7 @@ class WorkflowWorkingDirRestService:
},
)
redirect_url = self.generate_url_from_path(index_path, results_path)
redirect_url = self.generate_url_from_path(str(index_path), str(results_path))
return Response(status_int=http.HTTPStatus.FOUND, location=redirect_url)
@view_config(request_method="GET", route_name="get_qa_notes", renderer="json")
@@ -309,11 +309,11 @@ class WorkflowWorkingDirRestService:
def generate_url_from_path(self, root_path, results_path):
current_url = self.request.current_route_url()
return current_url.replace("/weblog", "/dir") + root_path.replace(results_path, "") + "/html/index.html"
return current_url.replace("/weblog", "/dir") + root_path.replace(results_path, "")
def generate_qa_notes_path(self, root_path, results_path):
current_url = self.request.current_route_url()
return current_url.replace("/qa_notes", "/dir") + root_path.replace(results_path, "") + "/html/qa_notes.html"
return current_url.replace("/qa_notes", "/dir") + root_path.replace(results_path, "")
@view_defaults(route_name="workflow_request", renderer="json")
Loading