From 3b25c9f6f519d021ee870fa1611bb89d6067c025 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 18 Jan 2022 02:09:40 +0200 Subject: [PATCH] fsdfds --- files/routes/admin.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/files/routes/admin.py b/files/routes/admin.py index 9da25176d..bfad24748 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -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("/@/make_admin") @limiter.limit("1/second;30/minute;200/hour;1000/day") @admin_level_required(3)