Skip to content

Commit 9304953

Browse files
committed
edit usrlist
1 parent 99e4bd5 commit 9304953

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.idea/workspace.xml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Server.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,15 @@ def on_join_room(data):
154154
else:
155155
print(users_in_room)
156156
usrlist = users_in_room
157-
for key in users_in_room:
158-
print(key)
159-
print(users_in_room[key])
160-
if users_in_room[key] is display_name:
161-
del users_in_room[key]
157+
del usrlist[sid]
162158
emit("user-list", {"list": usrlist, "my_id": sid})
159+
# print
160+
# for key in users_in_room:
161+
# print(key)
162+
# print(users_in_room[key])
163+
# if users_in_room[key] is display_name:
164+
# del usrlist[key]
165+
#
163166

164167
# print("\n users: ", users_in_room, "\n")
165168

0 commit comments

Comments
 (0)