1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-12-18 08:27:03 +02:00

Do not decrease flood violations

This commit is contained in:
Piero Toffanin 2022-10-14 12:49:28 -04:00
parent f18dfcd60d
commit bc8b331fe9

View File

@ -177,9 +177,6 @@ def create_app(args):
if flood.is_banned(ip): if flood.is_banned(ip):
abort(403, description="Too many request limits violations") abort(403, description="Too many request limits violations")
else:
if flood.has_violation(ip):
flood.decrease(ip)
if args.api_keys: if args.api_keys:
ak = get_req_api_key() ak = get_req_api_key()