master
Aevann1 2021-07-23 18:01:10 +02:00
parent c70fad5005
commit 2f71fce856
2 changed files with 1 additions and 8 deletions

View File

@ -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()

View File

@ -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):