Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ESAP API Gateway
Manage
Activity
Members
Labels
Plan
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
ESCAPE WP5
ESAP API Gateway
Commits
9a98d684
Commit
9a98d684
authored
2 years ago
by
John Swinbank
Committed by
Klaas Kliffen
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Handle the case where no filepath for a notebook is defined
parent
916d15fe
No related branches found
No related tags found
1 merge request
!211
Handle the case where no filepath for a notebook is defined
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
esap/ida/api/views/ida_views.py
+2
-3
2 additions, 3 deletions
esap/ida/api/views/ida_views.py
with
2 additions
and
3 deletions
esap/ida/api/views/ida_views.py
+
2
−
3
View file @
9a98d684
...
...
@@ -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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment