]> git.openstreetmap.org Git - nominatim.git/blobdiff - src/nominatim_db/tools/refresh.py
Merge pull request #3467 from mtmail/docs-datrie
[nominatim.git] / src / nominatim_db / tools / refresh.py
index 966080976febd42b35ef8dee293aa52df4a72628..6a40c0a73a4c6427d11fe89b0db0552c19a1e7cf 100644 (file)
@@ -16,10 +16,10 @@ from pathlib import Path
 
 from psycopg2 import sql as pysql
 
-from nominatim_core.config import Configuration
-from nominatim_core.db.connection import Connection, connect
-from nominatim_core.db.utils import execute_file, CopyBuffer
-from nominatim_core.db.sql_preprocessor import SQLPreprocessor
+from ..config import Configuration
+from ..db.connection import Connection, connect
+from ..db.utils import execute_file, CopyBuffer
+from ..db.sql_preprocessor import SQLPreprocessor
 from ..version import NOMINATIM_VERSION
 
 LOG = logging.getLogger()
@@ -154,7 +154,7 @@ def import_importance_csv(dsn: str, data_file: Path) -> int:
     if not data_file.exists():
         return 1
 
-    # Only import the first occurance of a wikidata ID.
+    # Only import the first occurence of a wikidata ID.
     # This keeps indexes and table small.
     wd_done = set()