remotes/1693045480750635534/spooky-22
Aevann1 2021-07-23 21:11:23 +02:00
parent eaec20a4de
commit f34c58a85b
2 changed files with 7 additions and 7 deletions

View File

@ -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)

View File

@ -3,7 +3,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="thumbnail" content="/assets/images/preview.png">
<link rel="icon" type="image/png" href="/assets/favicon.png">
<title>502 Bad Gateway</title>
<title>403 Unauthorized</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
@ -52,10 +52,10 @@
<div class="col-10 col-md-5">
<div class="text-center px-3 my-8">
<i class="fad fa-helmet-battle text-muted mb-5" style="font-size: 5rem;"></i>
<h1 class="h5">502 Bad Gateway</h1>
<p class="text-muted">Don't go this way, stranger. The gate is closed, and the guards are saying:</p>
<p class="text-muted mb-5">"We're restarting the server right now, try again in a few moments."</p>
<p><a href="javascript:void(0)" onclick="window.location.reload(true)" class="btn btn-primary">Reload</a></p>
<h1 class="h5">403 Unauthorized</h1>
<p class="text-muted">This page is only available to patrons:</p>
<p class="text-muted mb-5">https://rdrama.gumroad.com/l/tfcvri</p>
<p class="text-muted mb-5">https://patreon.com/Aevann</p>
</div>
</div>
</div>