X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4abaf712341758f50484fe1fe2764a7a5216de78..bf864b2c54390ca47121b49476c34bd7813bc7a9:/nominatim/tools/postcodes.py diff --git a/nominatim/tools/postcodes.py b/nominatim/tools/postcodes.py index dd2fd217..e172a77c 100644 --- a/nominatim/tools/postcodes.py +++ b/nominatim/tools/postcodes.py @@ -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()