From 29c1f2cd2e57440387832ba2801071aa5b4c6bbf Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sun, 16 May 2021 11:59:39 -0400 Subject: [PATCH] Remove print --- app/flood.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/flood.py b/app/flood.py index 31ee416..8160f4f 100644 --- a/app/flood.py +++ b/app/flood.py @@ -9,7 +9,6 @@ threshold = -1 def clear_banned(): global banned - print(banned) banned = {} def setup(violations_threshold = 100): @@ -34,4 +33,4 @@ def report(request_ip): def is_banned(request_ip): # More than X offences? - return active and banned.get(request_ip, 0) >= threshold \ No newline at end of file + return active and banned.get(request_ip, 0) >= threshold