fix some bugs

This commit is contained in:
dadav
2020-04-02 22:59:51 +02:00
parent 0dedd0974f
commit 58bbae89c2
10 changed files with 18 additions and 19 deletions

View File

@ -499,8 +499,7 @@ class WebConfig(plugins.Plugin):
elif request.method == "POST":
if path == "save-config":
try:
parsed_toml = json.loads(request.get_json())
save_config(parsed_toml, '/etc/pwnagotchi/config.toml')
save_config(request.get_json(), '/etc/pwnagotchi/config.toml')
_thread.start_new_thread(restart, (self.mode,))
return "success"
except Exception as ex: