From c20c73bb968dd034bf160ced0034ca82a8865524 Mon Sep 17 00:00:00 2001 From: greko17 Date: Mon, 4 Nov 2019 14:44:33 +0100 Subject: [PATCH] fix: core/channeltools.py ripristinato pulsante tutti/nessuno... --- core/channeltools.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/channeltools.py b/core/channeltools.py index e54eb43d..254d2ed9 100644 --- a/core/channeltools.py +++ b/core/channeltools.py @@ -375,8 +375,6 @@ def set_channel_setting(name, value, channel): except EnvironmentError: logger.error("ERROR al leer el archivo: %s" % file_settings) - dict_settings[name] = value - # delete unused Settings def_keys = [] del_keys = [] @@ -388,11 +386,12 @@ def set_channel_setting(name, value, channel): for key in del_keys: del dict_settings[key] + dict_settings[name] = value + # comprobamos si existe dict_file y es un diccionario, sino lo creamos if dict_file is None or not dict_file: dict_file = {} - dict_file['settings'] = dict_settings # Creamos el archivo ../settings/channel_data.json