From 64c4cb25e1f2bcc7b4a7f6315185cd735471b51b Mon Sep 17 00:00:00 2001 From: maaa Date: Mon, 10 Jul 2023 02:07:51 +0200 Subject: [PATCH] rate limit thing --- main | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main b/main index e2e1681..e9b6bda 100644 --- a/main +++ b/main @@ -470,7 +470,7 @@ def apicomments(post_id): return comments @app.route("/cdn/", methods=("GET", "POST")) -@limiter.limit("15/second", override_defaults=False) +@limiter.exempt def cdn(filename): if os.path.exists(os.path.join(UPLOAD_FOLDER, filename)): return send_from_directory(UPLOAD_FOLDER, filename)