From f3edaa9cf5c19dbe10d27c5462a728f4423d5aa5 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 12 Aug 2022 15:49:13 +0000 Subject: [PATCH] importer: Import all sources in alphabetical order To generate deterministic results Signed-off-by: Michael Tremer --- src/scripts/location-importer.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index 22c7b35..1785791 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -411,7 +411,7 @@ class CLI(object): validcountries = self.countries # Iterate over all potential sources - for source in location.importer.SOURCES: + for source in sorted(location.importer.SOURCES): with self.db.transaction(): # Create some temporary tables to store parsed data self.db.execute(""" -- 2.39.5