mirror of
https://github.com/iritmaximus/timetrials.git
synced 2026-10-12 19:13:48 +03:00
none: formatting
This commit is contained in:
+5
-8
@@ -19,7 +19,6 @@ def navigate():
|
|||||||
return render_template("home.html")
|
return render_template("home.html")
|
||||||
|
|
||||||
|
|
||||||
# TODO show 3 games with most times submitted
|
|
||||||
@app.route("/games")
|
@app.route("/games")
|
||||||
def get_games():
|
def get_games():
|
||||||
games = query_games()
|
games = query_games()
|
||||||
@@ -28,13 +27,16 @@ def get_games():
|
|||||||
return render_template("games.html", games=games, games_exist=True)
|
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")
|
@app.route("/courses")
|
||||||
def get_courses():
|
def get_courses():
|
||||||
return render_template("courses.html")
|
return render_template("courses.html")
|
||||||
|
|
||||||
|
|
||||||
# TODO show 3 newest times submitted
|
|
||||||
@app.route("/times")
|
@app.route("/times")
|
||||||
def get_times():
|
def get_times():
|
||||||
times = query_times()
|
times = query_times()
|
||||||
@@ -61,11 +63,6 @@ def create_time():
|
|||||||
return "Error: Incorrect method"
|
return "Error: Incorrect method"
|
||||||
|
|
||||||
|
|
||||||
@app.route("/cups")
|
|
||||||
def get_cups():
|
|
||||||
return render_template("cups.html")
|
|
||||||
|
|
||||||
|
|
||||||
@app.route("/login", methods=["GET", "POST"])
|
@app.route("/login", methods=["GET", "POST"])
|
||||||
def login():
|
def login():
|
||||||
if request.method == "GET":
|
if request.method == "GET":
|
||||||
|
|||||||
Reference in New Issue
Block a user