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