forked from mirrors/LibreTranslate
Remove print
This commit is contained in:
parent
f7d7731fb4
commit
29c1f2cd2e
1 changed files with 1 additions and 2 deletions
|
@ -9,7 +9,6 @@ threshold = -1
|
||||||
|
|
||||||
def clear_banned():
|
def clear_banned():
|
||||||
global banned
|
global banned
|
||||||
print(banned)
|
|
||||||
banned = {}
|
banned = {}
|
||||||
|
|
||||||
def setup(violations_threshold = 100):
|
def setup(violations_threshold = 100):
|
||||||
|
@ -34,4 +33,4 @@ def report(request_ip):
|
||||||
|
|
||||||
def is_banned(request_ip):
|
def is_banned(request_ip):
|
||||||
# More than X offences?
|
# More than X offences?
|
||||||
return active and banned.get(request_ip, 0) >= threshold
|
return active and banned.get(request_ip, 0) >= threshold
|
||||||
|
|
Loading…
Reference in a new issue