Skip to content

Commit

Permalink
Merge pull request #36 from OWASP/output-file-write-bug-fix
Browse files Browse the repository at this point in the history
Output file write bug fix
  • Loading branch information
dmdhrumilmistry authored Jan 2, 2024
2 parents 2502c5a + b0b5a2a commit 9113c6d
Show file tree
Hide file tree
Showing 2 changed files with 887 additions and 736 deletions.
3 changes: 3 additions & 0 deletions src/offat/report/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ def save_report(report_path: str | None, report_file_content: str | Table | None

@staticmethod
def generate_report(results: list[dict], report_format: str | None, report_path: str | None):
if report_path:
report_format = report_path.split('.')[-1]

formatted_results = ReportGenerator.handle_report_format(
results=results, report_format=report_format)
ReportGenerator.save_report(
Expand Down
Loading

0 comments on commit 9113c6d

Please sign in to comment.