summaryrefslogtreecommitdiffstats
path: root/accounts/utils/sessions.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2016-02-02 04:54:37 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2016-02-02 05:23:38 +0100
commit7a60befe0635bb72b4403d277587fef424768c4f (patch)
tree01bac2ca356fc99cc4a273286f22163696d792fd /accounts/utils/sessions.py
parentbb9a6c6a384e02364e4eb10ef560b4fd4f05e5f0 (diff)
downloadweb-7a60befe0635bb72b4403d277587fef424768c4f.tar.gz
web-7a60befe0635bb72b4403d277587fef424768c4f.tar.bz2
web-7a60befe0635bb72b4403d277587fef424768c4f.zip
Code style
Diffstat (limited to 'accounts/utils/sessions.py')
-rw-r--r--accounts/utils/sessions.py6
1 files changed, 2 insertions, 4 deletions
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