kitchen sink formatting pass

This commit is contained in:
justcool393 2023-04-02 01:14:40 -05:00 committed by Ben Rog-Wilhelm
parent 0e1a01eb75
commit 3c056d3410
14 changed files with 56 additions and 109 deletions

View file

@ -24,7 +24,6 @@ from files.helpers.strings import sql_ilike_clean
from files.helpers.wrappers import *
from files.routes.importstar import *
titleheaders = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Safari/537.36"
}
@ -36,7 +35,6 @@ MAX_URL_LENGTH = 2048
@app.post("/toggle_club/<pid>")
@auth_required
def toggle_club(pid, v):
post = get_post(pid)
if post.author_id != v.id and v.admin_level < 2: abort(403)