dfs
This commit is contained in:
parent
ab3c98aade
commit
1542afe6de
1 changed files with 11 additions and 2 deletions
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue