From b28593c46a2ee2758602b75f1aa178fa0053e023 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sat, 5 Oct 2024 15:37:20 -0700 Subject: [PATCH] fixShameWall --- etc/report_generator.py | 6 +++++- etc/report_generator5.py | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) 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):