diff --git a/etc/report_generator.py b/etc/report_generator.py index 192df4f..b5974ab 100644 --- a/etc/report_generator.py +++ b/etc/report_generator.py @@ -42,7 +42,11 @@ if config.sections() == []: LOG_PATH = config['reporting'].get('log_path', LOG_PATH) W3_PATH = config['reporting'].get('w3_path', W3_PATH) multiLogReader = config['reporting'].getboolean('multi_log_reader', multiLogReader) -shameWordList = config['reporting'].get('shame_word_list', shameWordList) +# config['reporting']['shame_word_list'] is a comma-separated string +shameWordList = config['reporting'].get('shame_word_list', '') +if isinstance(shameWordList, str): + shameWordList = shameWordList.split(', ') + def parse_log_file(file_path): global log_data diff --git a/etc/report_generator5.py b/etc/report_generator5.py index bd12d1f..43440a1 100644 --- a/etc/report_generator5.py +++ b/etc/report_generator5.py @@ -43,7 +43,10 @@ if config.sections() == []: LOG_PATH = config['reporting'].get('log_path', LOG_PATH) W3_PATH = config['reporting'].get('w3_path', W3_PATH) multiLogReader = config['reporting'].getboolean('multi_log_reader', multiLogReader) -shameWordList = config['reporting'].get('shame_word_list', shameWordList) +# config['reporting']['shame_word_list'] is a comma-separated string +shameWordList = config['reporting'].get('shame_word_list', '') +if isinstance(shameWordList, str): + shameWordList = shameWordList.split(', ') def parse_log_file(file_path):