Create new config on change

This commit is contained in:
Timotej Lazar 2023-04-07 13:48:26 +02:00
parent 931cd3f8c1
commit 771389bbdf

View file

@ -18,6 +18,7 @@ def index():
if flask.request.method == 'POST':
form = flask.request.form
db.write('settings', dict(zip(form.getlist('setting'), form.getlist('value'))))
system.run(system.save_config)
settings = db.read('settings')
return flask.render_template('config/index.html', **locals())
except Exception as e: