diff --git a/src/controllers/websocket_controller.py b/src/controllers/websocket_controller.py index cbd7858..dea7aa9 100644 --- a/src/controllers/websocket_controller.py +++ b/src/controllers/websocket_controller.py @@ -36,5 +36,5 @@ def notify_clients(date, room_id=None): socketio.emit('reservations_update', all_reservations, room=date) if room_id: - room_reservations = [r for r in all_reservations if r.room_id == room_id] + room_reservations = [r for r in all_reservations if r['room_id'] == room_id] socketio.emit('reservations_update', room_reservations, room=f"{date}_{room_id}") \ No newline at end of file