forked from MarseyWorld/MarseyWorld
fixed deduplication and changed to 30/minute per @TLSM
parent
7f36637b54
commit
1e25421ac9
|
@ -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")}')
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue