master
Aevann1 2022-01-02 16:13:09 +02:00
parent da12c2f812
commit a97b3292b5
1 changed files with 0 additions and 19 deletions

View File

@ -27,25 +27,6 @@ if SITE_NAME == 'PCM': cc = "splash mountain"
else: cc = "country club" else: cc = "country club"
month = datetime.now().strftime('%B') month = datetime.now().strftime('%B')
@app.get("/admin/sex2")
@admin_level_required(3)
def sex2(v):
for u in g.db.query(User).filter(User.patron > 0).all():
tier = u.patron + 20
if not u.has_badge(tier):
new_badge = Badge(badge_id=tier, user_id=u.id)
g.db.add(new_badge)
print(f'{u.username} with {u.patron} was given {tier}')
for num in [21,22,23,24,25]:
if num != tier:
existing = u.has_badge(num)
if existing:
g.db.delete(existing)
print(f'{u.username} with {u.patron} was removed {num}')
g.db.commit()
return "sex"
@app.get("/admin/grassed") @app.get("/admin/grassed")
@admin_level_required(2) @admin_level_required(2)