diff options
author | Javier Hernandez <jhernandez@soleta.eu> | 2024-01-22 10:18:47 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-01-22 11:09:37 +0100 |
commit | 8cd2f75d5166bd03011883979fad8adf04230ec9 (patch) | |
tree | ba116ae56a10b7a4a291ad41c0ef730b399ad3f0 | |
parent | 764502059563659a4a430de5e699f37d10d9325c (diff) |
views: Fix wrong room in client details
Fix incorrect room showing in client-details command.
-rw-r--r-- | ogcp/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
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;"} |