From e9f3ee5d59755330ba5e7d369ca0e440c949fa80 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 21 Jan 2022 14:10:28 +0200 Subject: [PATCH 1/2] vc --- files/routes/admin.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 768c8ecbc6..34e142d942 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -26,11 +26,6 @@ CF_HEADERS = {"Authorization": f"Bearer {CF_KEY}", "Content-Type": "application/ month = datetime.now().strftime('%B') -@app.get("/ratelimittest") -@limiter.limit("1/day") -def ratelimittest(): - return 'sex' - @app.get("/refund") @admin_level_required(3) def refund(v): From 005ddae1720d5563f3e51bda040eb68db5b96827 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 21 Jan 2022 14:13:52 +0200 Subject: [PATCH 2/2] cvxvxc --- files/routes/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/admin.py b/files/routes/admin.py index 34e142d942..7e07e99d4f 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1213,6 +1213,7 @@ def admin_distinguish_comment(c_id, v): def admin_dump_cache(v): with open('marsey_count.json', 'w') as f: dump(cache.get("marsey_count"), f) cache.clear() + with open("marsey_count.json", 'r') as f: cache.set("marsey_count", loads(f.read())) return {"message": "Internal cache cleared."}