re-enable autocheck for ratelimiting
parent
6c965d1c06
commit
921b9b1a2e
|
@ -69,7 +69,6 @@ limiter = Limiter(
|
|||
default_limits=[DEFAULT_RATELIMIT],
|
||||
application_limits=["10/second;200/minute;5000/hour;10000/day"],
|
||||
storage_uri=environ.get("REDIS_URL", "redis://localhost"),
|
||||
auto_check=False,
|
||||
)
|
||||
|
||||
engine = create_engine(app.config['SQLALCHEMY_DATABASE_URL'])
|
||||
|
|
|
@ -47,7 +47,6 @@ def before_request():
|
|||
request.full_path = request.full_path.rstrip('?').rstrip('/')
|
||||
if not request.full_path: request.full_path = '/'
|
||||
|
||||
limiter.check()
|
||||
g.db = db_session()
|
||||
|
||||
g.nonce = secrets.token_urlsafe(31)
|
||||
|
|
|
@ -60,7 +60,6 @@ def speak(data, v):
|
|||
f.write(data['file'])
|
||||
image = process_image(name, v)
|
||||
|
||||
limiter.check()
|
||||
if v.is_banned: return '', 403
|
||||
if TRUESCORE_CHAT_MINIMUM and v.truescore < TRUESCORE_CHAT_MINIMUM:
|
||||
return '', 403
|
||||
|
|
Loading…
Reference in New Issue