From 8409f9c19639b4e5bad9f5a47b2143df9ffaadbc Mon Sep 17 00:00:00 2001 From: codl Date: Thu, 27 Jul 2017 14:19:40 +0200 Subject: [PATCH] forgot to also clear the session from flask.g --- routes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/routes.py b/routes.py index b6120aa..b05a8e4 100644 --- a/routes.py +++ b/routes.py @@ -47,4 +47,5 @@ def logout(): if(g.viewer): db.session.delete(g.viewer) db.session.commit() + g.viewer = None return redirect(url_for('index'))