Skip to content
Snippets Groups Projects
Commit b8840297 authored by Klaas Kliffen's avatar Klaas Kliffen :satellite:
Browse files

Merge branch 'tickets/183' into 'master'

Handle the case where no filepath for a notebook is defined

Closes esap-general#183

See merge request astron-sdc/esap-api-gateway!211
parents 916d15fe 9a98d684
No related branches found
No related tags found
1 merge request!211Handle the case where no filepath for a notebook is defined
Pipeline #36952 passed
......@@ -149,7 +149,7 @@ class Deploy():
BINDER_REPO_TYPE = "git"
BINDER_REPO_URL = quote_url(workflow.url)
BINDER_REPO_REF = workflow.ref
BINDER_REPO_FILE = quote_url(workflow.filepath)
BINDER_REPO_FILE = quote_url(workflow.filepath) if workflow.filepath else None
# By default, launch into the JupyterLab environment
BINDER_INTERFACE = f"urlpath=lab{'/tree/' + BINDER_REPO_FILE if BINDER_REPO_FILE else ''}"
......@@ -163,7 +163,7 @@ class Deploy():
BINDER_REPO_TYPE = "git"
BINDER_REPO_URL = quote_url(workflow.url)
BINDER_REPO_REF = workflow.ref
BINDER_REPO_FILE = quote_url(workflow.filepath)
BINDER_REPO_FILE = quote_url(workflow.filepath) if workflow.filepath else None
# By default, launch into the JupyterLab environment
BINDER_INTERFACE = f"urlpath=lab{'/tree/' + BINDER_REPO_FILE if BINDER_REPO_FILE else ''}"
......@@ -176,4 +176,3 @@ class Deploy():
#target = facility.url
return redirect(target)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment