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