From 4b79efe18a9952268d65b98813e3929a8179ed2c Mon Sep 17 00:00:00 2001 From: Charles Rose <33735833+rosechar@users.noreply.github.com> Date: Tue, 7 Apr 2020 11:09:33 -0400 Subject: [PATCH] updated web.py to make session permanent (#547) * moved making session permanent to after authentication in web.py Co-authored-by: Charlie Rose --- ihatemoney/web.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ihatemoney/web.py b/ihatemoney/web.py index 1b80ab62..a3b10726 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -235,6 +235,8 @@ def authenticate(project_id=None): # add the project on the top of the list session["projects"].insert(0, (project_id, project.name)) session[project_id] = True + # Set session to permanent to make language choice persist + session.permanent = True session.update() setattr(g, "project", project) return redirect(url_for(".list_bills"))