From fc83b0a7a1364a820c415d5aa7c33d4d6eb95de6 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 25 Feb 2024 01:44:54 +0200 Subject: [PATCH] bump ratelimit --- files/routes/holes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/holes.py b/files/routes/holes.py index e27986d12..1d4f39008 100644 --- a/files/routes/holes.py +++ b/files/routes/holes.py @@ -710,8 +710,8 @@ def delete_all_hole_banners(v, hole): @app.post("/h//marsey_image") @limiter.limit('1/second', scope=rpath) @limiter.limit('1/second', scope=rpath, key_func=get_ID) -@limiter.limit("10/day", deduct_when=lambda response: response.status_code < 400) -@limiter.limit("10/day", deduct_when=lambda response: response.status_code < 400, key_func=get_ID) +@limiter.limit("10/minute;50/day", deduct_when=lambda response: response.status_code < 400) +@limiter.limit("10/minute;50/day", deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @auth_required def hole_marsey(v, hole): if g.is_tor: abort(403, "Image uploads are not allowed through TOR!")