diff --git a/dist/rchat-1.0.0-py3-none-any.whl b/dist/rchat-1.0.0-py3-none-any.whl index 6355929..f620dae 100644 Binary files a/dist/rchat-1.0.0-py3-none-any.whl and b/dist/rchat-1.0.0-py3-none-any.whl differ diff --git a/dist/rchat-1.0.0.tar.gz b/dist/rchat-1.0.0.tar.gz index 9d5584d..281b1d8 100644 Binary files a/dist/rchat-1.0.0.tar.gz and b/dist/rchat-1.0.0.tar.gz differ diff --git a/src/rchat/app.py b/src/rchat/app.py index 551adf9..6fe838a 100644 --- a/src/rchat/app.py +++ b/src/rchat/app.py @@ -33,11 +33,11 @@ class Application(BaseApplication): ws = web.WebSocketResponse() await ws.prepare(request) session = request.session - if not 'username' in session: - session['username'] = fake.name().split(" ")[0] - session['uid'] = str(uuid.uuid4()) - session['session_id'] = session['uid'] - + if "username" not in session: + session["username"] = fake.name().split(" ")[0] + session["uid"] = str(uuid.uuid4()) + session["session_id"] = session["uid"] + username = session["username"] session_id = session["session_id"] uid = session["uid"]