From 3576dec07f0d8497d9a1f620e9ce59eacba7011e Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 27 Apr 2023 17:54:42 +0200 Subject: [PATCH] dont ratelimit /gumroad and /kofi --- files/routes/users.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index ca490ab66..403666c49 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -1373,7 +1373,7 @@ def claim_rewards_all_users(): KOFI_TOKEN = environ.get("KOFI_TOKEN", "").strip() if KOFI_TOKEN: @app.post("/kofi") - @limiter.limit(DEFAULT_RATELIMIT) + @limiter.exempt def kofi(): data = json.loads(request.values['data']) verification_token = data['verification_token'] @@ -1404,8 +1404,7 @@ if KOFI_TOKEN: return '' @app.post("/gumroad") -@limiter.limit('1/second', scope=rpath) -@limiter.limit(DEFAULT_RATELIMIT) +@limiter.exempt def gumroad(): data = request.values ip = request.headers.get('CF-Connecting-IP')