From 6e533bc030f07a334dc591b9a8eb4e884ee0a5c5 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 8 Oct 2023 21:45:45 +0300 Subject: [PATCH] move "other" hole to the bottom --- files/routes/posts.py | 3 +++ files/templates/sidebar_WPD.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 4f48d66121..36f9333532 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -89,6 +89,9 @@ def submit_get(v, hole=None): HOLES = [x[0] for x in g.db.query(Hole.name).order_by(Hole.name)] + if SITE_NAME == "WPD": + HOLES = HOLES - ["other"] + ["other"] + return render_template("submit.html", HOLES=HOLES, v=v, hole=hole) @app.get("/post/") diff --git a/files/templates/sidebar_WPD.html b/files/templates/sidebar_WPD.html index 4827bfd2e4..4981ee3be2 100644 --- a/files/templates/sidebar_WPD.html +++ b/files/templates/sidebar_WPD.html @@ -62,11 +62,11 @@ Industrial ISIS Maiming - Other Police Shooting Suicide Vehicle + Other