summaryrefslogtreecommitdiffstats
path: root/gui/odr-dabmux-gui.py
diff options
context:
space:
mode:
authorYoann QUERET <yoann@queret.net>2015-10-02 16:34:35 +0200
committerYoann QUERET <yoann@queret.net>2015-10-02 16:34:35 +0200
commit845af2d9c4abb7669594444d293b3c7072b1e161 (patch)
tree7ce740eb2b315a72fa1e4ae202ba61953f1c3e0a /gui/odr-dabmux-gui.py
parentb4b9c78e834ce7a4602bfa81dbb3077abe213752 (diff)
downloaddabmux-845af2d9c4abb7669594444d293b3c7072b1e161.tar.gz
dabmux-845af2d9c4abb7669594444d293b3c7072b1e161.tar.bz2
dabmux-845af2d9c4abb7669594444d293b3c7072b1e161.zip
Make config.json output fully JSON compatible
Diffstat (limited to 'gui/odr-dabmux-gui.py')
-rwxr-xr-xgui/odr-dabmux-gui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/odr-dabmux-gui.py b/gui/odr-dabmux-gui.py
index d0f2a27..5a3de76 100755
--- a/gui/odr-dabmux-gui.py
+++ b/gui/odr-dabmux-gui.py
@@ -63,7 +63,7 @@ def config_json_post():
return template('configeditor',
version = conf.get_mux_version(),
- config = conf.get_full_configuration(),
+ config = json.dumps(conf.get_full_configuration(), indent=4),
message = successmessage)
@route('/config.json', method="GET")
@@ -73,8 +73,8 @@ def config_json_get():
conf.load()
- return {'version': conf.get_mux_version(),
- 'config': conf.get_full_configuration()}
+ return { 'version': conf.get_mux_version(),
+ 'config': conf.get_full_configuration() }
@route('/')