From: Michael Tremer Date: Fri, 14 Jul 2023 10:26:24 +0000 (+0000) Subject: importer: Don't write AS without names into the database X-Git-Tag: 0.9.17~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=008d54685c4c9ea46e85dc82d3e04e7640bd0cdb;p=location%2Flibloc.git importer: Don't write AS without names into the database Signed-off-by: Michael Tremer --- diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index c578de0..3607e19 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -285,6 +285,10 @@ class CLI(object): """) for row in rows: + # Skip AS without names + if not row.name: + continue + a = writer.add_as(row.number) a.name = row.name