Skip to content

Commit

Permalink
Update urlcheck.py
Browse files Browse the repository at this point in the history
Improve json output
  • Loading branch information
cordt-sei authored Aug 8, 2024
1 parent 90fa268 commit aaf3c94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/urlcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ def generate_report(report):
"total_issues": len(report),
"issues": report
}
print(json.dumps(output))
return json.dumps(output)

if __name__ == "__main__":
check_path = os.environ.get('CHECK_PATH', './pages/')
print(f"Checking URLs in location: {check_path}")
report = check_location(check_path)
generate_report(report)
output = generate_report(report)
print(output)

0 comments on commit aaf3c94

Please sign in to comment.