Spaces:
Paused
Paused
Update backend/main.py
#2
by
majdap
- opened
- backend/main.py +1 -1
backend/main.py
CHANGED
@@ -174,7 +174,7 @@ async def connect(sid, environ):
|
|
174 |
gunicorn_logger.info(f"π₯ [event: connected] sid={sid}, client_id={client_id}")
|
175 |
|
176 |
# get username to Client Object from DB
|
177 |
-
username = find_name_from_id(get_collection_users(),
|
178 |
|
179 |
# sid = socketid, client_id = client specific ID ,always the same for same user
|
180 |
clients[sid] = Client(sid, client_id, username)
|
|
|
174 |
gunicorn_logger.info(f"π₯ [event: connected] sid={sid}, client_id={client_id}")
|
175 |
|
176 |
# get username to Client Object from DB
|
177 |
+
username = find_name_from_id(get_collection_users(), username)
|
178 |
|
179 |
# sid = socketid, client_id = client specific ID ,always the same for same user
|
180 |
clients[sid] = Client(sid, client_id, username)
|