fddf
This commit is contained in:
parent
c26fdd1ae9
commit
02d592f186
1 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue