From 332e79a107f429e3f7b1f4809aec71adf1a996b5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 29 Jul 2021 08:42:45 +0200 Subject: [PATCH] fdfdd --- drama/routes/users.py | 8 ++++++++ drama/templates/{followers - Copy.html => rentoids.html} | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) rename drama/templates/{followers - Copy.html => rentoids.html} (93%) diff --git a/drama/routes/users.py b/drama/routes/users.py index bcf41bc60..e7e737274 100644 --- a/drama/routes/users.py +++ b/drama/routes/users.py @@ -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("/@/followers") @auth_required def followers(username, v): diff --git a/drama/templates/followers - Copy.html b/drama/templates/rentoids.html similarity index 93% rename from drama/templates/followers - Copy.html rename to drama/templates/rentoids.html index 12da05893..1cf74f118 100644 --- a/drama/templates/followers - Copy.html +++ b/drama/templates/rentoids.html @@ -1,7 +1,7 @@ {% extends "default.html" %} {% block content %}

-
@{{u.username}}'s followers
+
Rentoids