dffd
This commit is contained in:
parent
ee35a91d62
commit
210e7955a3
1 changed files with 6 additions and 10 deletions
|
@ -38,16 +38,12 @@ def dp(v):
|
||||||
@app.route("/dramacoins/comments", methods=["GET"])
|
@app.route("/dramacoins/comments", methods=["GET"])
|
||||||
@admin_level_required(6)
|
@admin_level_required(6)
|
||||||
def dc(v):
|
def dc(v):
|
||||||
count = g.db.query(Comment).count()
|
for p in g.db.query(Comment).options(lazyload('*')).filter(Comment.parent_submission != None).all():
|
||||||
print(count)
|
print(p.id)
|
||||||
count = g.db.query(Comment).filter(Comment.parent_submission != None).count()
|
if p.author:
|
||||||
print(count)
|
print(p.author.username)
|
||||||
#for p in g.db.query(Comment).options(lazyload('*')).filter_by().all():
|
p.author.dramacoins += p.upvotes + p.downvotes - 1
|
||||||
#print(p.id)
|
g.db.add(p.author)
|
||||||
#if p.author:
|
|
||||||
#print(p.author.username)
|
|
||||||
#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…
Add table
Add a link
Reference in a new issue