mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-05-28 09:52:28 -04:00
Remove print
This commit is contained in:
+1
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user