Create new config on change
This commit is contained in:
parent
931cd3f8c1
commit
771389bbdf
|
@ -18,6 +18,7 @@ def index():
|
||||||
if flask.request.method == 'POST':
|
if flask.request.method == 'POST':
|
||||||
form = flask.request.form
|
form = flask.request.form
|
||||||
db.write('settings', dict(zip(form.getlist('setting'), form.getlist('value'))))
|
db.write('settings', dict(zip(form.getlist('setting'), form.getlist('value'))))
|
||||||
|
system.run(system.save_config)
|
||||||
settings = db.read('settings')
|
settings = db.read('settings')
|
||||||
return flask.render_template('config/index.html', **locals())
|
return flask.render_template('config/index.html', **locals())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in a new issue