aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-11-08 08:24:19 +0300
committerBonfaceKilz2021-11-08 08:24:19 +0300
commit8cef34c83fd2c013e0671ece54bfe43a3c4bb510 (patch)
tree6e73d7519edd7714aed4441961fb49581d990ab0
parent8176593c4e2ef93fb02dd7f30e24dba9f37bcf4b (diff)
downloadgenenetwork2-8cef34c83fd2c013e0671ece54bfe43a3c4bb510.tar.gz
Fix runtime errors
* wqflask/wqflask/__init__.py: when registering a URL, the url_prefix should begin with a trailing slash. * wqflask/wqflask/jupyter_notebooks.py: fix imports.
-rw-r--r--wqflask/wqflask/__init__.py2
-rw-r--r--wqflask/wqflask/jupyter_notebooks.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/__init__.py b/wqflask/wqflask/__init__.py
index 9223ec5d..fbf1c9f5 100644
--- a/wqflask/wqflask/__init__.py
+++ b/wqflask/wqflask/__init__.py
@@ -62,7 +62,7 @@ app.register_blueprint(environments_blueprint, url_prefix="/environments")
app.register_blueprint(facilities_blueprint, url_prefix="/facilities")
app.register_blueprint(blogs_blueprint, url_prefix="/blogs")
app.register_blueprint(news_blueprint, url_prefix="/news")
-app.register_blueprint(jupyter_notebooks, url_prefix="jupyter_notebooks")
+app.register_blueprint(jupyter_notebooks, url_prefix="/jupyter_notebooks")
app.register_blueprint(resource_management, url_prefix="/resource-management")
diff --git a/wqflask/wqflask/jupyter_notebooks.py b/wqflask/wqflask/jupyter_notebooks.py
index 348b252d..dbea04dd 100644
--- a/wqflask/wqflask/jupyter_notebooks.py
+++ b/wqflask/wqflask/jupyter_notebooks.py
@@ -1,4 +1,4 @@
-from Flask import BluePrint, render_template
+from flask import Blueprint, render_template
jupyter_notebooks = Blueprint('jupyter_notebooks', __name__)