fsdfds
This commit is contained in:
parent
38bd6d1c79
commit
73eee35c71
1 changed files with 14 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue