fixed deduplication and changed to 30/minute per @TLSM

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-11-13 00:20:19 -06:00
parent 7f36637b54
commit 1e25421ac9
2 changed files with 1 additions and 2 deletions

View File

@ -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")}')

View File

@ -122,7 +122,6 @@ def buy(v, award):
@app.post("/award/<thing_type>/<id>")
@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):