INNER CODE UNIT · Python

graph

stanfrbd/cyberbro · app.py:449

def graph(analysis_id: str) -> tuple[str, int]:
    """Render the graph visualization for the given analysis ID."""
    analysis_results = db.session.get(AnalysisResult, analysis_id)
    if analysis_results:
        return render_template("graph.html", analysis_id=analysis_id, API_PREFIX=API_PREFIX), 200
    return render_template("404.html"), 404


if __name__ == "__main__":
    app.run(port=secrets.flask_port, debug=secrets.flask_debug, host=secrets.flask_host)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…