remotes/1693045480750635534/spooky-22
parent
5ad28cd910
commit
1f2e5a107c
|
@ -38,12 +38,16 @@ def dp(v):
|
|||
@app.route("/dramacoins/comments", methods=["GET"])
|
||||
@admin_level_required(6)
|
||||
def dc(v):
|
||||
for p in g.db.query(Comment).options(lazyload('*')).all():
|
||||
print(p.id)
|
||||
if p.author:
|
||||
print(p.author.username)
|
||||
p.author.dramacoins += p.upvotes + p.downvotes - 1
|
||||
g.db.add(p.author)
|
||||
count = g.db.query(Comment).options(lazyload('*')).count()
|
||||
print(count)
|
||||
count = g.db.query(Comment).options(lazyload('*')).filter(Comment.parent_submission is not None).count()
|
||||
print(count)
|
||||
#for p in g.db.query(Comment).options(lazyload('*')).filter_by().all():
|
||||
#print(p.id)
|
||||
#if p.author:
|
||||
#print(p.author.username)
|
||||
#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