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'))