master
Aevann1 2022-01-18 02:09:40 +02:00
parent 86fa0ae407
commit 3b25c9f6f5
1 changed files with 14 additions and 0 deletions

View File

@ -30,6 +30,20 @@ else: cc = "country club"
month = datetime.now().strftime('%B')
@app.get("/refund")
@admin_level_required(3)
def refund(v):
users = (x[0] for x in g.db.query(AwardRelationship.user_id).filter(AwardRelationship.submission_id == None, AwardRelationship.comment_id == None, AwardRelationship.kind.in_(('snow','gingerbread','lights','candycane','fireplace','haunt','upsidedown','stab','spiders','fog'))).all())
for uid in users:
user = get_account(uid)
user.coins += 500
g.db.add(user)
g.db.commit()
return 'sex'
@app.post("/@<username>/make_admin")
@limiter.limit("1/second;30/minute;200/hour;1000/day")
@admin_level_required(3)