forked from MarseyWorld/MarseyWorld
css
parent
c70fad5005
commit
2f71fce856
|
@ -966,8 +966,7 @@ def admin_distinguish_comment(c_id, v):
|
|||
|
||||
|
||||
@app.route("/admin/dump_cache", methods=["GET"])
|
||||
@admin_level_required(3)
|
||||
@validate_formkey
|
||||
@admin_level_required(6)
|
||||
def admin_dump_cache(v):
|
||||
cache.delete_memoized(leaderboard)
|
||||
cache.clear()
|
||||
|
|
|
@ -26,12 +26,6 @@ def user_info(v, username):
|
|||
user = get_user(username, v=v)
|
||||
return jsonify(user.json)
|
||||
|
||||
@app.route("/admin/leaderboard", methods=["GET"])
|
||||
@admin_level_required(6)
|
||||
def dumpleaderboard(v):
|
||||
cache.delete_memoized(leaderboard)
|
||||
return "sex"
|
||||
|
||||
@app.route("/leaderboard", methods=["GET"])
|
||||
@auth_desired
|
||||
def leaderboard(v):
|
||||
|
|
Loading…
Reference in New Issue