From 1e25421ac9378914ff83e95512eca1407aca9123 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 13 Nov 2022 00:20:19 -0600 Subject: [PATCH] fixed deduplication and changed to 30/minute per @TLSM --- files/helpers/wrappers.py | 2 +- files/routes/awards.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index 8b525c59d..cff7458e3 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -146,5 +146,5 @@ def feature_required(x): return wrapper return wrapper_maker -def ratelimit_user(limit="1/second;20/minute;200/hour;1000/day"): +def ratelimit_user(limit="1/second;30/minute;200/hour;1000/day"): return limiter.limit(limit, key_func=lambda:f'{SITE}-{session.get("lo_user")}') diff --git a/files/routes/awards.py b/files/routes/awards.py index 134bcfabc..a9d71655e 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -122,7 +122,6 @@ def buy(v, award): @app.post("/award//") @limiter.limit("1/second;30/minute;200/hour;1000/day") @ratelimit_user() -@ratelimit_user() @is_not_permabanned @feature_required('AWARDS') def award_thing(v, thing_type, id):