mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Fix checkstyle
This commit is contained in:
@@ -6,10 +6,10 @@ from itsdangerous import URLSafeTimedSerializer, BadSignature
|
|||||||
|
|
||||||
|
|
||||||
class ItsdangerousSession(CallbackDict, SessionMixin):
|
class ItsdangerousSession(CallbackDict, SessionMixin):
|
||||||
|
|
||||||
def __init__(self, initial=None):
|
def __init__(self, initial=None):
|
||||||
def on_update(self):
|
def on_update(self):
|
||||||
self.modified = True
|
self.modified = True
|
||||||
|
|
||||||
CallbackDict.__init__(self, initial, on_update)
|
CallbackDict.__init__(self, initial, on_update)
|
||||||
self.modified = False
|
self.modified = False
|
||||||
|
|
||||||
@@ -45,8 +45,8 @@ class ItsdangerousSessionInterface(SessionInterface):
|
|||||||
response.delete_cookie(app.session_cookie_name,
|
response.delete_cookie(app.session_cookie_name,
|
||||||
domain=domain)
|
domain=domain)
|
||||||
return
|
return
|
||||||
session.permanent=True
|
session.permanent = True
|
||||||
expires= datetime.utcnow() + timedelta(app.config.get('PERMANENT_SESSION_LIFETIME'))
|
expires = datetime.utcnow() + timedelta(app.config.get('PERMANENT_SESSION_LIFETIME'))
|
||||||
val = self.get_serializer(app).dumps(dict(session))
|
val = self.get_serializer(app).dumps(dict(session))
|
||||||
response.set_cookie(app.session_cookie_name, val,
|
response.set_cookie(app.session_cookie_name, val,
|
||||||
expires=expires, httponly=True,
|
expires=expires, httponly=True,
|
||||||
|
|||||||
Reference in New Issue
Block a user