remotes/1693045480750635534/spooky-22
Aevann1 2021-07-28 06:22:27 +02:00
parent b6fca097d0
commit 075db72229
2 changed files with 1 additions and 10 deletions

View File

@ -21,15 +21,6 @@ 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 != None).count()
g.db.add(u)
return "sex"
@app.get("/admin/shadowbanned")
@auth_required
def shadowbanned(v):

View File

@ -6,7 +6,7 @@
<tr>
<th style="font-weight:bold;">#</th>
<th style="font-weight:bold;">Name</th>
<th style="font-weight:bold;">Reason</th>
<th style="font-weight:bold;">Ban reason</th>
<th style="font-weight:bold;">Banned by</th>
</tr>
</thead>