We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1675eac commit cfe1922Copy full SHA for cfe1922
visualization/net_tree.py
@@ -30,7 +30,8 @@ def main():
30
with open(args.file_net, 'r', encoding='utf-8') as f:
31
raw = json_loads(f.read())
32
33
- sorted_nets = dict(sorted(raw.items(), key=lambda item: item[1]['all'], reverse=True))
+ # sort by 'all' (max reports) or 'reported_ips' (worst reputation)
34
+ sorted_nets = dict(sorted(raw.items(), key=lambda item: item[1]['reported_ips'], reverse=True))
35
i = 0
36
37
with mmdb_database(args.asn_db) as m:
0 commit comments