printing log

This commit is contained in:
n.diaz
2024-11-25 20:02:36 +01:00
parent 1c9605940c
commit 3d541b5cbc

View File

@ -71,7 +71,7 @@ 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) 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]))