remotes/1693045480750635534/spooky-22
Aevann1 2021-07-28 06:05:02 +02:00
parent e759785417
commit 3d737ee52d
1 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,15 @@ from .front import frontlist
from drama.__main__ import app, cache
@app.get("/counts/comments")
@admin_level_required(6)
def counts_comments(v):
for u in g.db.query(User).all():
u.comment_count = u.comments.filter(Comment.is_banned==False, Comment.deleted_utc==0, Comment.parent_submission is not None).count()
g.db.add(u)
return "sex"
@app.get("/admin/shadowbanned")
@auth_required
def shadowbanned(v):