Remove print

This commit is contained in:
Piero Toffanin 2021-05-16 11:59:39 -04:00 committed by GitHub
parent f7d7731fb4
commit 29c1f2cd2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
return active and banned.get(request_ip, 0) >= threshold