navigator-session 0.6.3__py3-none-any.whl → 0.6.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- navigator_session/data.py +1 -1
- navigator_session/storages/redis.py +1 -1
- navigator_session/version.py +1 -1
- {navigator_session-0.6.3.dist-info → navigator_session-0.6.5.dist-info}/METADATA +1 -1
- {navigator_session-0.6.3.dist-info → navigator_session-0.6.5.dist-info}/RECORD +8 -8
- {navigator_session-0.6.3.dist-info → navigator_session-0.6.5.dist-info}/LICENSE +0 -0
- {navigator_session-0.6.3.dist-info → navigator_session-0.6.5.dist-info}/WHEEL +0 -0
- {navigator_session-0.6.3.dist-info → navigator_session-0.6.5.dist-info}/top_level.txt +0 -0
navigator_session/data.py
CHANGED
|
@@ -58,7 +58,7 @@ class SessionData(MutableMapping[str, Any]):
|
|
|
58
58
|
created = data.get('created', None) if data else None
|
|
59
59
|
self._now = datetime.now(timezone.utc)
|
|
60
60
|
self.__created__ = self._now
|
|
61
|
-
now = int(self._now.
|
|
61
|
+
now = int(self._now.timestamp())
|
|
62
62
|
self._now = now # time for this instance creation
|
|
63
63
|
age = now - created if created else now
|
|
64
64
|
if max_age is not None and age > max_age:
|
|
@@ -249,7 +249,7 @@ class RedisStorage(AbstractStorage):
|
|
|
249
249
|
) -> SessionData:
|
|
250
250
|
"""Create a New Session Object for this User."""
|
|
251
251
|
session_identity = request.get(SESSION_KEY, None)
|
|
252
|
-
session_id = request.get(SESSION_ID, None)
|
|
252
|
+
session_id = data.get(SESSION_ID, request.get(SESSION_ID, None))
|
|
253
253
|
try:
|
|
254
254
|
conn = aioredis.Redis(connection_pool=self._redis)
|
|
255
255
|
except Exception as err:
|
navigator_session/version.py
CHANGED
|
@@ -6,7 +6,7 @@ __description__ = (
|
|
|
6
6
|
'Navigator Session allows us to store user-specific data '
|
|
7
7
|
'into session object.'
|
|
8
8
|
)
|
|
9
|
-
__version__ = '0.6.
|
|
9
|
+
__version__ = '0.6.5'
|
|
10
10
|
__copyright__ = 'Copyright (c) 2023 Jesus Lara'
|
|
11
11
|
__author__ = 'Jesus Lara'
|
|
12
12
|
__author_email__ = 'jesuslarag@gmail.com'
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
navigator_session/__init__.py,sha256=U1MtM30ccs5N6c_lzUYFRS5NURz6kheDC8jZmRL_2yc,3056
|
|
2
2
|
navigator_session/conf.py,sha256=Pe8qsukmt5cXXPc3hwFphSWF5xCIpZfeFQ8JhICEnow,1695
|
|
3
|
-
navigator_session/data.py,sha256=
|
|
3
|
+
navigator_session/data.py,sha256=z4OULrvzA7Y8x25O7AQBXJ5dywJKxjgkiWGFj6MhKBA,5867
|
|
4
4
|
navigator_session/middleware.py,sha256=_bQKfD81BxNZTGuyGTc4yh7y1Rb95I-y2hM1ihE4wCk,1944
|
|
5
5
|
navigator_session/session.py,sha256=CG-TjsmQqjuk6N7GCYNgQTCkrXptgq-swHDiemgHmKI,2398
|
|
6
|
-
navigator_session/version.py,sha256=
|
|
6
|
+
navigator_session/version.py,sha256=_lz3nFH2sOLT6lmg_SpS7MED5vFJ_sC3Cd-UyeUKwBA,430
|
|
7
7
|
navigator_session/storages/__init__.py,sha256=kTcHfqps5LmnDpFAktxevPuSIwRbnrcMmB7Uygq4axQ,34
|
|
8
8
|
navigator_session/storages/abstract.py,sha256=wTv0yWMVXTwrzA_bjexcwI7c6_W3tzosXlMOIZIQrBM,6503
|
|
9
9
|
navigator_session/storages/cookie.py,sha256=VILzVCatKlDhMoQDoE2y0u6s7lp4wbdep5Oc0NfIJcg,2474
|
|
10
|
-
navigator_session/storages/redis.py,sha256=
|
|
11
|
-
navigator_session-0.6.
|
|
12
|
-
navigator_session-0.6.
|
|
13
|
-
navigator_session-0.6.
|
|
14
|
-
navigator_session-0.6.
|
|
15
|
-
navigator_session-0.6.
|
|
10
|
+
navigator_session/storages/redis.py,sha256=mqSRyb0YOgV8gvNiAuPhYCLA0fCOgZsQlqOUWE85Gss,11528
|
|
11
|
+
navigator_session-0.6.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
12
|
+
navigator_session-0.6.5.dist-info/METADATA,sha256=nxnUT6YaVqxR59bC5WX70oK0tMZoOHDODFejs3-mLRg,2302
|
|
13
|
+
navigator_session-0.6.5.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
|
|
14
|
+
navigator_session-0.6.5.dist-info/top_level.txt,sha256=ZpOEy3wLKGsxG2rc0nHqcqJCV3HIOG_XCfE6mtsYYYY,18
|
|
15
|
+
navigator_session-0.6.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|