web: loginwall stats

This commit is contained in:
radex 2024-07-08 23:55:26 +02:00
parent ac62cd90e2
commit 670313a54c
Signed by: radex
SSH key fingerprint: SHA256:hvqRXAGG1h89yqnS+cyFTLKQbzjWD4uXIqw7Y+0ws30

View file

@ -43,11 +43,13 @@ from . import directory
@app.route("/")
@login_required
def stats():
return render_template("stats.html")
@app.route("/cursed-plot.json")
@login_required
@cache.cached()
def plot():
with open(os.path.join(os.path.dirname(__file__), "cursed-query.sql")) as fd:
cursor = db.session.execute(