From df0c64450ac5dd3e39fb495dccb8db1b08f430cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Thuret?= Date: Fri, 5 Nov 2021 14:59:16 +0100 Subject: [PATCH] remove debug print --- app/flood.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/flood.py b/app/flood.py index a76e200..3f068f1 100644 --- a/app/flood.py +++ b/app/flood.py @@ -19,8 +19,6 @@ def setup(violations_threshold=100): active = True threshold = violations_threshold - print(violations_threshold) - scheduler = BackgroundScheduler() scheduler.add_job(func=clear_banned, trigger="interval", weeks=4) scheduler.start() @@ -33,13 +31,11 @@ def report(request_ip): if active: banned[request_ip] = banned.get(request_ip, 0) banned[request_ip] += 1 - print(banned[request_ip]) def decrease(request_ip): if banned[request_ip] > 0: banned[request_ip] -= 1 - print('decrease', request_ip) def has_violation(request_ip):