web: loginwall stats
This commit is contained in:
parent
ac62cd90e2
commit
670313a54c
1 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue