views: Fix wrong room in client details

Fix incorrect room showing in client-details command.
master
Javier Hernandez 2024-01-22 10:18:47 +01:00 committed by OpenGnSys Support Team
parent 7645020595
commit 8cd2f75d51
1 changed files with 2 additions and 1 deletions

View File

@ -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;"}