Skip to content

Commit

Permalink
Changed file loading process to use json.load instead of json.loads
Browse files Browse the repository at this point in the history
  • Loading branch information
AlperenY-cs committed May 15, 2024
1 parent dd04163 commit bd754d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dojo/tools/rapplex/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit bd754d6

Please sign in to comment.