Files
flask-formula10/formula10/controller/statistics_controller.py
Christoph Urlacher f1090f205b
All checks were successful
Build Formula10 Docker Image / build-docker (push) Successful in 38s
Add initial leaderboards page
2024-03-02 13:11:25 +01:00

11 lines
402 B
Python

from flask import render_template
from formula10 import app
from formula10.domain.points_model import PointsModel
from formula10.domain.template_model import TemplateModel
@app.route("/graphs")
def graphs_root() -> str:
model = TemplateModel(active_user_name=None, active_result_race_name=None)
points = PointsModel()
return render_template("statistics.jinja", model=model, points=points)