]> git.ipfire.org Git - location/libloc.git/commitdiff
importer: Drop previously imported AS names, too
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 21 Feb 2024 17:04:43 +0000 (17:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 21 Feb 2024 17:04:43 +0000 (17:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/location-importer.in

index bff02505f565538468b82860dc36b05ec89104da..d5691b6734a1463c0d1c20acaea44a4feaa6cd3f 100644 (file)
@@ -502,6 +502,7 @@ class CLI(object):
                                """)
 
                                # Remove all previously imported content
+                               self.db.execute("DELETE FROM autnums  WHERE source = %s", source)
                                self.db.execute("DELETE FROM networks WHERE source = %s", source)
 
                                try: