This commit is contained in:
Aevann1 2021-07-29 08:42:45 +02:00
parent 3c43f0f275
commit 1524c7309e
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):