Skip to content

Commit

Permalink
added if statement back in to run results function in output.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rebekahrudd committed Oct 23, 2024
1 parent 49ecbc8 commit 460bc3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gatorgrade/output/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,9 @@ def run_checks(
percent = round(passed_count / len(results) * 100)
# if the report is wanted, create output in line with their specifications

# if all(report):
report_output_data = create_report_json(passed_count, results, percent)
configure_report(report_location, report_storing_type, storing_location_name, report_output_data)
if report_location and report_storing_type and storing_location_name:
report_output_data = create_report_json(passed_count, results, percent)
configure_report(report_location, report_storing_type, storing_location_name, report_output_data)

# compute summary results and display them in the console
summary = f"Passed {passed_count}/{len(results)} ({percent}%) of checks for {Path.cwd().name}!"
Expand Down

0 comments on commit 460bc3b

Please sign in to comment.