re-enable autocheck for ratelimiting

pull/92/head
Aevann 2023-01-23 04:38:39 +02:00
parent 6c965d1c06
commit 921b9b1a2e
3 changed files with 0 additions and 3 deletions

View File

@ -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'])

View File

@ -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)

View File

@ -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