From: Michael Tremer Date: Sat, 2 Mar 2024 09:43:25 +0000 (+0000) Subject: importer: Don't import any AS names from Spamhaus X-Git-Tag: 0.9.18~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe45cd33802d5255472d8a7e89c1be84044bf243;p=location%2Flibloc.git importer: Don't import any AS names from Spamhaus Those are not very human readable and we should usually have a better source. Signed-off-by: Michael Tremer --- diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index 056451f..878710d 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -1942,20 +1942,6 @@ class CLI(object): )""", "%s" % asn, name, True, ) - # In case we do not have an name for this AS already, update - # autnums table accordingly - self.db.execute(""" - INSERT INTO autnums( - number, - name, - source - ) VALUES (%s, %s, %s) - ON CONFLICT (number) DO NOTHING""", - "%s" % asn, - as_name, - name - ) - @staticmethod def _parse_bool(block, key): val = block.get(key)