From b1df8f0c9566ebe78a6a01b6b05af7b40542dd54 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 22 Aug 2021 15:18:05 +0200 Subject: [PATCH] fdfd --- files/routes/admin.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 974e07da5a..6623cbce05 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -20,15 +20,6 @@ from files.__main__ import app, cache from .front import frontlist from files.helpers.discord import add_role -@app.get("/admin/comment_count") -@admin_level_required(3) -def comment_count(v): - for p in g.db.query(Submission).options(lazyload('*')).all(): - p.comment_count = len(p.comments) - g.db.add(p) - return "sex" - - @app.get("/admin/shadowbanned") @auth_required def shadowbanned(v):