From bd754d63e70497ddc73e62b53fb789e6924e642a Mon Sep 17 00:00:00 2001 From: AlperenY-cs Date: Wed, 15 May 2024 11:36:16 +0300 Subject: [PATCH] Changed file loading process to use json.load instead of json.loads --- dojo/tools/rapplex/parser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dojo/tools/rapplex/parser.py b/dojo/tools/rapplex/parser.py index 8dd77c69e25..aa2569998d1 100644 --- a/dojo/tools/rapplex/parser.py +++ b/dojo/tools/rapplex/parser.py @@ -17,9 +17,8 @@ def get_label_for_scan_types(self, scan_type): def get_description_for_scan_types(self, scan_type): return "Import Rapplex JSON report." - def get_findings(self, file, test): - raw_data = file.read() - data = json.loads(raw_data) + def get_findings(self, filename, test): + data = json.load(filename) findings = [] severities = ["Information", "Low", "Medium", "High", "Critical"]