Пример #1
0
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")
Пример #2
0
def api(owner, repo):
    r = RepoScanner(owner, repo)
    result = r.get_results()

    print(result)
    return Response(json.dumps(result, indent=4), mimetype="application/json")
Пример #3
0
def results(owner, repo):
    r = RepoScanner(owner, repo)
    results = r.get_results()

    print(results)
    return render_template("results.html", results=results)
Пример #4
0
def index(owner, repo):
    r = RepoScanner(owner, repo)
    results = r.get_results()
    return render_template("index.html", results=results)