removed prints
This commit is contained in:
2
waf3.py
2
waf3.py
@ -71,7 +71,6 @@ def report_attacks():
|
|||||||
hosts[a.host] = hosts[a.host] + 1
|
hosts[a.host] = hosts[a.host] + 1
|
||||||
else:
|
else:
|
||||||
hosts[a.host] = 1
|
hosts[a.host] = 1
|
||||||
print(a.host)
|
|
||||||
|
|
||||||
sorted_hosts = dict(sorted(hosts.items(), key=lambda x:x[1]))
|
sorted_hosts = dict(sorted(hosts.items(), key=lambda x:x[1]))
|
||||||
|
|
||||||
@ -260,7 +259,6 @@ async def info(ip, unblock=False):
|
|||||||
|
|
||||||
|
|
||||||
def purge():
|
def purge():
|
||||||
print(older_than)
|
|
||||||
found = Attack.select(Attack.ip).where(
|
found = Attack.select(Attack.ip).where(
|
||||||
(Attack.date < older_than.datetime ) )
|
(Attack.date < older_than.datetime ) )
|
||||||
for attack in found:
|
for attack in found:
|
||||||
|
|||||||
Reference in New Issue
Block a user