From 458450da4e1404d915f2e823b9ec17f3deebe368 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 16 Nov 2021 05:06:46 +0200 Subject: [PATCH] fdsfds --- files/routes/admin.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 289f5a0da..9b59278ab 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -27,8 +27,6 @@ def delete(v): votes = g.db.query(Vote).join(Submission, Vote.submission_id==Submission.id).filter(Submission.author_id.in_(shadowbanned)).all() votes2 = g.db.query(CommentVote).join(Comment, CommentVote.comment_id==Comment.id).filter(Comment.author_id.in_(shadowbanned)).all() votes = votes + votes2 - for vote in votes: g.db.delete(vote) - g.db.commit() return (str(len(votes))) @app.get("/name//")