diff options
Diffstat (limited to 'uploader/__init__.py')
-rw-r--r-- | uploader/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/uploader/__init__.py b/uploader/__init__.py index 347f170..9fdb383 100644 --- a/uploader/__init__.py +++ b/uploader/__init__.py @@ -9,9 +9,9 @@ from flask_session import Session from uploader.oauth2.client import user_logged_in, authserver_authorise_uri +from . import session from .base_routes import base from .species import speciesbp -from .dbinsert import dbinsertbp from .oauth2.views import oauth2 from .expression_data import exprdatabp from .errors import register_error_handlers @@ -76,6 +76,7 @@ def create_app(): app.add_template_global(lambda: app.config["GN2_SERVER_URL"], name="gn2server_uri") app.add_template_global(user_logged_in) + app.add_template_global(lambda : session.user_details()["email"], name="user_email") Session(app) @@ -83,8 +84,6 @@ def create_app(): app.register_blueprint(base, url_prefix="/") app.register_blueprint(oauth2, url_prefix="/oauth2") app.register_blueprint(speciesbp, url_prefix="/species") - app.register_blueprint(dbinsertbp, url_prefix="/dbinsert") - app.register_blueprint(exprdatabp, url_prefix="/expression-data") register_error_handlers(app) return app |