From c39c3fe1463e1e4b3402e89c8850b7afaca58922 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 6 Mar 2022 00:55:32 +0200 Subject: [PATCH] fart --- files/routes/settings.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index 63538ae96..bebe9e2b8 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -709,20 +709,16 @@ def settings_css(v): @app.get("/settings/profilecss") @auth_required def settings_profilecss_get(v): - - if not v.patron : return f"You must be a {patron} to set profile css." return render_template("settings_profilecss.html", v=v) @app.post("/settings/profilecss") @limiter.limit("1/second;30/minute;200/hour;1000/day") @auth_required def settings_profilecss(v): - if not v.patron: return f"You must be a {patron} to set profile css." profilecss = request.values.get("profilecss").strip().replace('\\', '').strip()[:4000] v.profilecss = profilecss g.db.add(v) g.db.commit() - return render_template("settings_profilecss.html", v=v) @app.post("/settings/block")