]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tools/postcodes.py
index postcodes after refreshing
[nominatim.git] / nominatim / tools / postcodes.py
index dd2fd21745f5499e25dc04fef3c005957dbaa7da..e172a77ce790020cd4d94ebff0e1d617cc90779f 100644 (file)
@@ -35,6 +35,9 @@ class _CountryPostcodesCollector:
         self._update_from_external(analyzer, project_dir)
         to_add, to_delete, to_update = self._compute_changes(conn)
 
+        LOG.info("Processing country '%s' (%s added, %s deleted, %s updated).",
+                 self.country, len(to_add), len(to_delete), len(to_update))
+
         with conn.cursor() as cur:
             if to_add:
                 execute_values(cur,
@@ -165,4 +168,4 @@ def update_postcodes(dsn, project_dir, tokenizer):
 
             conn.commit()
 
-        analyzer.add_postcodes_from_db()
+        analyzer.update_postcodes_from_db()