Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Oct 18, 2024
1 parent 9972417 commit 76777cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion visualization/world_map_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@
}


# pylint: disable=E0606
def main():
with open(args.file, 'r', encoding='utf-8') as f:
raw = json_loads(f.read())

with mmdb_database(args.country_db) as m:
for asn, ips in raw.items():
for ips in raw.values():
for ip, reports in ips.items():
ip_md = m.get(ip)
if ip_md['country'] not in DATA['data']['values']:
Expand Down

0 comments on commit 76777cb

Please sign in to comment.