remotes/1693045480750635534/spooky-22
Aevann1 2021-07-23 17:57:38 +02:00
parent 5d0bed11c2
commit a466c8f520
2 changed files with 11 additions and 2 deletions

View File

@ -964,6 +964,16 @@ def admin_distinguish_comment(c_id, v):
return jsonify({"html":html, "api":html})
@app.route("/admin/dump_cache", methods=["GET"])
@admin_level_required(3)
@validate_formkey
def admin_dump_cache(v):
cache.delete_memoized(leaderboard)
cache.clear()
return jsonify({"message": "Internal cache cleared."})
@app.route("/admin/ban_domain", methods=["POST"])
@admin_level_required(4)
@validate_formkey

View File

@ -31,8 +31,7 @@ def user_info(v, username):
@validate_formkey
def admin_dump_cache(v):
cache.delete_memoized(leaderboard)
cache.clear()
return jsonify({"message": "Internal cache cleared."})
return "sex"
@app.route("/leaderboard", methods=["GET"])
@auth_desired