change method of session key retrival

This commit is contained in:
prance 2022-01-28 00:14:14 +01:00
parent e1441af9a3
commit 8773236047
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ class NGINXConfigurator:
@classmethod
def refresh_config(cls, sessions):
"""
Expects sessions in form of list of (uid, port, sessionid) entries.
Expects sessions in form of tuple of (uid, port, sessionid) entries.
"""
config = cls._get_config(sessions)
with open(cls._config_path, 'w') as F:

View File

@ -25,7 +25,7 @@ def profile_start_up(sender, user, request, **kwargs):
# Create session
session = Session()
session.user = user
session.sessionid = request.COOKIES.get('sessionid')
session.sessionid = request.session.session_key
# TODO metoda wybierania portów
port = 6969
session.port = port