X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/afeafc8aa797a9051fc43a4482165c563a834a3f..a7bd39b62a8c3a179f48715840ee346d93dd0815:/nominatim/tools/refresh.py diff --git a/nominatim/tools/refresh.py b/nominatim/tools/refresh.py index c50493cc..c6df9982 100644 --- a/nominatim/tools/refresh.py +++ b/nominatim/tools/refresh.py @@ -18,7 +18,7 @@ from nominatim.config import Configuration from nominatim.db.connection import Connection, connect from nominatim.db.utils import execute_file from nominatim.db.sql_preprocessor import SQLPreprocessor -from nominatim.version import version_str +from nominatim.version import NOMINATIM_VERSION LOG = logging.getLogger() @@ -176,7 +176,7 @@ def recompute_importance(conn: Connection) -> None: cur.execute(""" UPDATE placex SET (wikipedia, importance) = (SELECT wikipedia, importance - FROM compute_importance(extratags, country_code, osm_type, osm_id, centroid)) + FROM compute_importance(extratags, country_code, rank_search, centroid)) """) cur.execute(""" UPDATE placex s SET wikipedia = d.wikipedia, importance = d.importance @@ -216,30 +216,33 @@ def setup_website(basedir: Path, config: Configuration, conn: Connection) -> Non LOG.info('Creating website directory.') basedir.mkdir() - template = dedent(f"""\ + assert config.project_dir is not None + basedata = dedent(f"""\