From 7a60befe0635bb72b4403d277587fef424768c4f Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 2 Feb 2016 04:54:37 +0100 Subject: Code style --- accounts/utils/sessions.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'accounts/utils/sessions.py') diff --git a/accounts/utils/sessions.py b/accounts/utils/sessions.py index dd4e4bb..8dc8cf3 100644 --- a/accounts/utils/sessions.py +++ b/accounts/utils/sessions.py @@ -61,9 +61,7 @@ class EncryptedSessionInterface(SecureCookieSessionInterface): session = self.session_class() if session is not None: - if app.config.get('PERMANENT_SESSION_LIFETIME') is not None: - session.permanent = True - else: - session.permanent = False + session.permanent = \ + app.config.get('PERMANENT_SESSION_LIFETIME') is not None return session -- cgit v1.2.3-1-g7c22