Make HTML templates

This commit is contained in:
Michał Gdula 2023-05-06 15:25:37 +03:00
parent 0d07a3391b
commit 4088432e99
5 changed files with 15 additions and 45 deletions

View file

@ -23,7 +23,7 @@ class ScoreForm(FlaskForm):
@cache.cached(timeout=60)
def index():
top_scores = Scores.query.order_by(Scores.score.desc()).limit(10).all()
return render_template('scores.html', top_scores=top_scores, show_sub=True)
return render_template('scores.html', top_scores=top_scores)
@blueprint.route('/post', methods=['POST'])