Skip to content

Commit

Permalink
portal: remove notebooks url
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Sep 1, 2021
1 parent 11234df commit abf37b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions mpcontribs-portal/mpcontribs/portal/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
url(r"^$", views.index, name="index"),
url(r"^browse/?$", RedirectView.as_view(pattern_name="index")),
url(r"^healthcheck/?$", views.healthcheck, name="healthcheck"),
url(
r"^notebooks/(?P<nb>[A-Za-z0-9_\/]{3,})\.html$",
views.notebooks,
name="notebooks",
),
url(
r"^projects/(?P<project>[a-zA-Z0-9_]{3,31})\.(?P<extension>json\.gz|zip)$",
views.download_project,
Expand Down
6 changes: 0 additions & 6 deletions mpcontribs-portal/mpcontribs/portal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,5 @@ def create_download(request):
return JsonResponse({"progress": 1})


def notebooks(request, nb):
ctx = get_context(request)
subdir = ctx["PORTAL_CNAME"].replace("localhost.", "")
return render(request, os.path.join("notebooks", subdir, nb + ".html"))


def healthcheck(request):
return HttpResponse("OK")

0 comments on commit abf37b5

Please sign in to comment.