diff options
author | zsloan | 2020-03-09 15:31:55 -0500 |
---|---|---|
committer | zsloan | 2020-03-09 15:31:55 -0500 |
commit | 92124da3f0ea36bc1ddbc4ef2c2ae5f0dc4863b2 (patch) | |
tree | 4bdc04fe6c238b462817206f52549bb7e980c24a | |
parent | 698ecc501a5ae6e4771f3ce208864ef22080a81b (diff) | |
download | genenetwork2-92124da3f0ea36bc1ddbc4ef2c2ae5f0dc4863b2.tar.gz |
I think I found the issue; I only saw it on production instead of my branch because it was tied to a session expiring
-rw-r--r-- | wqflask/wqflask/user_session.py | 2 | ||||
-rw-r--r-- | wqflask/wqflask/views.py | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/wqflask/wqflask/user_session.py b/wqflask/wqflask/user_session.py index 49ad4f0a..20c8d84d 100644 --- a/wqflask/wqflask/user_session.py +++ b/wqflask/wqflask/user_session.py @@ -75,7 +75,7 @@ class UserSession(object): response = make_response(redirect(url_for('login'))) #response.set_cookie(self.cookie_name, '', expires=0) flash("Due to inactivity your session has expired. If you'd like please login again.") - return response + #return response #return else: self.record = dict(login_time = time.time(), diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index 42b20880..8a80c26c 100644 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -85,10 +85,6 @@ def connect_db(): g.db = g._database = sqlalchemy.create_engine(SQL_URI, encoding="latin1") logger.debug(g.db) -@app.before_request -def before_request(): - g.user_session = user_session.UserSession() - @app.teardown_appcontext def shutdown_session(exception=None): db = getattr(g, '_database', None) |