From 6ff420e338b07263c44edba436b1a04b9f0fcc21 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 27 Jun 2022 04:21:34 +0200 Subject: [PATCH] add a public list of poorcels --- files/routes/users.py | 6 ++++++ files/templates/poorcels.html | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 files/templates/poorcels.html diff --git a/files/routes/users.py b/files/routes/users.py index d0be9bd86..20bec311c 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -256,6 +256,12 @@ def downvoting_comments(v, username, uid): +@app.get("/poorcels") +@auth_required +def poorcels(v): + users = g.db.query(User).filter_by(poorcel=True).all() + + return render_template("poorcels.html", v=v, users=users) @app.get("/grassed") diff --git a/files/templates/poorcels.html b/files/templates/poorcels.html new file mode 100644 index 000000000..cd07d6cec --- /dev/null +++ b/files/templates/poorcels.html @@ -0,0 +1,26 @@ +{% extends "default.html" %} +{% block content %} +
+
+	
+
+
Poorcels
+

+
+ + + + + + + +{% for user in users %} + + + + +{% endfor %} + +
#Name
{{loop.index}}{{user.username}}
+ +{% endblock %} \ No newline at end of file