From a4a70f58b47252d4c584cf9c8d77737659da8fb3 Mon Sep 17 00:00:00 2001 From: iritmaximus Date: Mon, 20 Feb 2023 22:32:38 +0200 Subject: [PATCH] none: formatting --- flaskr/views.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/flaskr/views.py b/flaskr/views.py index 0b23947..a130ac6 100644 --- a/flaskr/views.py +++ b/flaskr/views.py @@ -19,7 +19,6 @@ def navigate(): return render_template("home.html") -# TODO show 3 games with most times submitted @app.route("/games") def get_games(): games = query_games() @@ -28,13 +27,16 @@ def get_games(): return render_template("games.html", games=games, games_exist=True) -# TODO show 3 courses with most activity +@app.route("/cups") +def get_cups(): + return render_template("cups.html") + + @app.route("/courses") def get_courses(): return render_template("courses.html") -# TODO show 3 newest times submitted @app.route("/times") def get_times(): times = query_times() @@ -61,11 +63,6 @@ def create_time(): return "Error: Incorrect method" -@app.route("/cups") -def get_cups(): - return render_template("cups.html") - - @app.route("/login", methods=["GET", "POST"]) def login(): if request.method == "GET":