Fuck so much to comment on

Renamed the folders and containers to something more reasonable
Using .env file for secretes so I can better hide them from git
Mostly it, I think
This commit is contained in:
Michał Gdula 2023-06-09 22:27:30 +03:00
parent a29f06dfee
commit a4ebfa8552
61 changed files with 84 additions and 111 deletions

View file

@ -1,24 +0,0 @@
from flask import Blueprint, request, render_template
from server.models import Scores
blueprint = Blueprint("views", __name__)
@blueprint.route("/")
# @cache.cached(timeout=60)
def index():
difficulty = request.args.get("diff", 0)
top_scores = (
Scores.query.order_by(Scores.score.desc())
.filter_by(difficulty=difficulty)
.limit(10)
.all()
)
return render_template("scores.html", top_scores=top_scores)
@blueprint.route("/about")
def about():
return render_template("about.html")