From 8cd2f75d5166bd03011883979fad8adf04230ec9 Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Mon, 22 Jan 2024 10:18:47 +0100 Subject: views: Fix wrong room in client details Fix incorrect room showing in client-details command. --- ogcp/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ogcp/views.py b/ogcp/views.py index 2d7deac..41dbf3c 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -906,7 +906,8 @@ def action_client_info(): r = server.get('/scopes') rooms = parse_scopes_from_tree(r.json(), 'room') - rooms = [(room['id'], room['name']) for room in rooms] + rooms = [(room['id'], room['name']) for room in rooms + if room['id'] == int(db_client['room'])] form.room.choices = list(rooms) form.submit.render_kw = {"style": "visibility:hidden;"} -- cgit v1.2.3-18-g5258