diff options
Diffstat (limited to 'ogcp')
-rw-r--r-- | ogcp/views.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index 4f29f2f..c05511b 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -559,6 +559,12 @@ def action_client_info(): form.room.data = db_client['room'] form.boot.data = db_client['boot'] + r = g.server.get('/oglive/list') + available_oglives = r.json()['oglive'] + for oglive in available_oglives: + choice = (oglive.get('directory'), oglive.get('directory')) + form.livedir.choices.append(choice) + r = g.server.get('/mode') available_modes = [(mode, mode) for mode in r.json()['modes']] form.boot.choices = list(available_modes) |