diff options
Diffstat (limited to 'ogcp')
-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;"} |