master
Aevann1 2022-01-02 00:18:00 +02:00
parent 3a96e957a3
commit 6e81a4d406
1 changed files with 11 additions and 2 deletions

View File

@ -28,8 +28,7 @@ else: cc = "country club"
month = datetime.now().strftime('%B') month = datetime.now().strftime('%B')
@app.get("/admin/sex")
@app.post("/admin/sex")
@admin_level_required(3) @admin_level_required(3)
def sex(v): def sex(v):
data = {'access_token': GUMROAD_TOKEN} data = {'access_token': GUMROAD_TOKEN}
@ -42,6 +41,16 @@ def sex(v):
return "sex" return "sex"
@app.get("/admin/sex2")
@admin_level_required(3)
def sex2(v):
for u in g.db.query(User).filter(User.patron > 0).all():
for num in [21,22,23,24,25]:
if num == u.patron+20: continue
existing = u.has_badge(num)
if existing: print(f'{u.username}: {num}')
return "sex"
@app.get("/admin/grassed") @app.get("/admin/grassed")