def badge(owner, repo): r = RepoScanner(owner, repo) results = r.get_results() for each in results: if each["status"] is False and each["severity"] is 2: return redirect("https://img.shields.io/badge/repodoctor-Error-red.svg")
def api(owner, repo): r = RepoScanner(owner, repo) result = r.get_results() print(result) return Response(json.dumps(result, indent=4), mimetype="application/json")
def results(owner, repo): r = RepoScanner(owner, repo) results = r.get_results() print(results) return render_template("results.html", results=results)
def index(owner, repo): r = RepoScanner(owner, repo) results = r.get_results() return render_template("index.html", results=results)