Commit a38f4500 authored by Flavio TARSETTI's avatar Flavio TARSETTI

Merge branch 'fix_url_building' into 'master'

Fix url building

See merge request !80
parents bca02c60 03ebdda3
Pipeline #35614 passed with stages
in 4 minutes and 37 seconds
......@@ -80,8 +80,6 @@ def run_experiment(
"""Run experiments locally"""
print(use_local, use_docker, run_environment_path)
def load_result(executor):
"""Loads the result of an experiment, in a single go"""
......@@ -79,9 +79,14 @@ class WebAPI(object):
def __build_url(self, path):
url = "{schema}://{host}{path}".format(
schema=self.parsed[0], host=self.parsed[1], path=path
platform = self.parsed.geturl()
if platform.endswith("/"):
platform = platform[:-1]
if path.startswith("/"):
path = path[1:]
url = "{platform}/{path}".format(platform=platform, path=path)
return url
def get(self, path):
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment