fix: core/channeltools.py

ripristinato pulsante tutti/nessuno...
This commit is contained in:
greko17
2019-11-04 14:44:33 +01:00
parent 7ee9c45326
commit c20c73bb96

View File

@@ -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