]> git.ipfire.org Git - location/libloc.git/blobdiff - src/scripts/location-importer.in
importer: Return known countries as a set()
[location/libloc.git] / src / scripts / location-importer.in
index 4a487c95f0a5ff4b722ca19adeb61e3139b7418f..9b83f3fcf244f6e6e9096c6981138c1abe65ff4c 100644 (file)
@@ -307,7 +307,7 @@ class CLI(object):
                # Fetch all valid country codes to check parsed networks aganist...
                countries = self.db.query("SELECT country_code FROM countries ORDER BY country_code")
 
-               return [country.country_code for country in countries]
+               return set((country.country_code for country in countries))
 
        def handle_write(self, ns):
                """