remotes/1693045480750635534/spooky-22
Aevann1 2021-07-29 08:42:45 +02:00
parent 981ae97562
commit 332e79a107
2 changed files with 9 additions and 1 deletions

View File

@ -221,6 +221,14 @@ def user_by_uid(uid, v=None):
def redditor_moment_redirect(username):
return redirect(f"/@{username}")
@app.get("/rentoids")
@auth_desired
def rentoids(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
users = g.db.query(User).filter(User.rent_utc > 0).all()
return render_template("rentoids.html", v=v, users=users)
@app.get("/@<username>/followers")
@auth_required
def followers(username, v):

View File

@ -1,7 +1,7 @@
{% extends "default.html" %}
{% block content %}
<pre class="d-none d-md-inline-block"></pre>
<h5>@{{u.username}}'s followers</h5>
<h5>Rentoids</h5>
<pre></pre>
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">