forked from MarseyWorld/MarseyWorld
fsdfds
parent
86fa0ae407
commit
3b25c9f6f5
|
@ -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…
Reference in New Issue