From 25369fea05c6292cac7b4faeb13d6656111ae899 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 30 2014 14:58:12 +0000 Subject: Make the flask sessions permanent so that we can configure their time-out --- diff --git a/progit/__init__.py b/progit/__init__.py index 6945897..f5d06de 100644 --- a/progit/__init__.py +++ b/progit/__init__.py @@ -205,6 +205,13 @@ def inject_variables(): ) +# pylint: disable=W0613 +@APP.before_request +def set_session(): + """ Set the flask session as permanent. """ + flask.session.permanent = True + + @APP.template_filter('lastcommit_date') def lastcommit_date_filter(repo): """ Template filter returning the last commit date of the provided repo.