forked from MarseyWorld/MarseyWorld
master
parent
3e07f80c71
commit
9db8b47ddb
|
@ -27,17 +27,6 @@ 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)
|
||||
|
|
Loading…
Reference in New Issue