poprawkiA

This commit is contained in:
Mateusz Gruszczyński
2025-07-06 16:22:03 +02:00
parent b8107be0a8
commit 25e721a875

2
app.py
View File

@ -834,6 +834,7 @@ def handle_edit_item(data):
@socketio.on('join_list')
def handle_join(data):
global active_users
room = str(data['room'])
username = data.get('username', 'Gość')
join_room(room)
@ -851,6 +852,7 @@ def handle_join(data):
@socketio.on('disconnect')
def handle_disconnect():
global active_users
for room, users in active_users.items():
if current_user.username in users:
users.remove(current_user.username)