master
fireworks88 2021-07-23 22:02:47 +02:00
parent 64df374d27
commit 81441e5c3e
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ def followers(username, v):
@auth_required @auth_required
def visitors(v): def visitors(v):
if v.admin_level < 1 and not v.patron: return render_template("errors/patron.html", v=v) if v.admin_level < 1 and not v.patron: return render_template("errors/patron.html", v=v)
viewers=sorted(v.viewers, key = lambda x: x.last_view_utc) viewers=sorted(v.viewers, key = lambda x: x.last_view_utc, reverse=True)
return render_template("viewers.html", v=v, viewers=viewers) return render_template("viewers.html", v=v, viewers=viewers)
@app.route("/@<username>", methods=["GET"]) @app.route("/@<username>", methods=["GET"])