Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
This commit is contained in:
commit
b8ac48bc17
1 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue