fddf
parent
f5d7f84488
commit
6babdffb38
|
@ -28,8 +28,9 @@ from drama.__main__ import app, cache
|
|||
@admin_level_required(6)
|
||||
def sex(v):
|
||||
for p in g.db.query(Submission).options(lazyload('*')).all() + g.db.query(Comment).options(lazyload('*')).all():
|
||||
p.author.dramacoins += p.upvotes + p.downvotes - 1
|
||||
g.db.add(p.author)
|
||||
if p.author:
|
||||
p.author.dramacoins += p.upvotes + p.downvotes - 1
|
||||
g.db.add(p.author)
|
||||
return "sex"
|
||||
|
||||
@app.route("/admin/shadowbanned", methods=["GET"])
|
||||
|
|
Loading…
Reference in New Issue