From 11df210f8a98c2c34e8388571a5d82ed36875939 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 27 Dec 2020 21:03:41 +0000 Subject: [PATCH] there is a better way --- bridge_master.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index e736b20..4893044 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -534,6 +534,8 @@ def options_config(): if CONFIG['SYSTEMS'][_system]['ENABLED'] == True: if 'OPTIONS' in CONFIG['SYSTEMS'][_system]: _options = {} + re.sub("\'","",CONFIG['SYSTEMS'][_system]['OPTIONS']) + re.sub("\"","",CONFIG['SYSTEMS'][_system]['OPTIONS']) for x in CONFIG['SYSTEMS'][_system]['OPTIONS'].split(";"): try: k,v = x.split('=') @@ -554,14 +556,12 @@ def options_config(): if _options['TS1_STATIC']: re.sub("\s","",_options['TS1_STATIC']) - re.sub("\'","",_options['TS1_STATIC']) if re.search("![\d\,]",_options['TS1_STATIC']): logger.debug('(OPTIONS) %s - TS1_STATIC contains characters other than numbers and comma, ignoring',_system) continue if _options['TS2_STATIC']: re.sub("\s","",_options['TS2_STATIC']) - re.sub("\'","",_options['TS2_STATIC']) if re.search("![\d\,]",_options['TS2_STATIC']): logger.debug('(OPTIONS) %s - TS2_STATIC contains characters other than numbers and comma, ignoring',_system) continue