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