From f34c58a85b17bd36a9f495e00ecbe4661d1c63dc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 23 Jul 2021 21:11:23 +0200 Subject: [PATCH] sneed --- drama/routes/users.py | 4 ++-- drama/templates/errors/502.html | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drama/routes/users.py b/drama/routes/users.py index ed4214022..16affccff 100644 --- a/drama/routes/users.py +++ b/drama/routes/users.py @@ -1,4 +1,4 @@ -import qrcode +vimport qrcode import io from datetime import datetime @@ -215,7 +215,7 @@ def followers(username, v): @app.get("/views") @auth_required def visitors(v): - if v.admin_level < 1 and not v.patron: abort(403) + if v.admin_level < 1 and not v.patron: abort(502) viewers=sorted(v.viewers, key = lambda x: x.last_view_utc) return render_template("viewers.html", v=v, viewers=viewers) diff --git a/drama/templates/errors/502.html b/drama/templates/errors/502.html index de411fd48..4f51413ca 100644 --- a/drama/templates/errors/502.html +++ b/drama/templates/errors/502.html @@ -3,7 +3,7 @@ -502 Bad Gateway +403 Unauthorized @@ -52,10 +52,10 @@
-

502 Bad Gateway

-

Don't go this way, stranger. The gate is closed, and the guards are saying:

-

"We're restarting the server right now, try again in a few moments."

-

Reload

+

403 Unauthorized

+

This page is only available to patrons:

+

https://rdrama.gumroad.com/l/tfcvri

+

https://patreon.com/Aevann