mirror of https://git.48k.eu/ogcp
views: Fix wrong room in client details
Fix incorrect room showing in client-details command.master
parent
7645020595
commit
8cd2f75d51
|
@ -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;"}
|
||||
|
|
Loading…
Reference in New Issue