Merge branch 'frost' of https://github.com/Aevann1/Drama into frost

remotes/1693045480750635534/spooky-22
Aevann1 2022-01-28 05:30:38 +02:00
commit 1bd59a721d
1 changed files with 11 additions and 0 deletions

View File

@ -27,6 +27,17 @@ CF_HEADERS = {"Authorization": f"Bearer {CF_KEY}", "Content-Type": "application/
month = datetime.now().strftime('%B')
# @app.get("/dead")
# @admin_level_required(2)
# def dead(v):
# g.db.query(User)
# user = get_user(username)
# if not user: abort(404)
# user.admin_level = 2
# g.db.add(user)
# g.db.commit()
# return {"message": "User has been made admin!"}
@app.post("/@<username>/make_admin")
@limiter.limit("1/second;5/day")
@admin_level_required(3)