This commit is contained in:
Aevann1 2021-07-26 01:33:41 +02:00
parent c26fdd1ae9
commit 02d592f186

View file

@ -28,6 +28,7 @@ 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():
if p.author:
p.author.dramacoins += p.upvotes + p.downvotes - 1
g.db.add(p.author)
return "sex"