From 144b811712e1e89f015a682786f2589d15e5e7ed Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 25 Feb 2024 01:45:09 +0200 Subject: [PATCH] same as last commit --- 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 1d4f39008..5109bc519 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/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) +@limiter.limit("5/minute;50/day", deduct_when=lambda response: response.status_code < 400) +@limiter.limit("5/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!")