X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3185fad9182b9f6b2ec609aacf9344b4922a0d35..0c47558729764a8c53d635c22b6f0cb967a03989:/nominatim/tools/refresh.py diff --git a/nominatim/tools/refresh.py b/nominatim/tools/refresh.py index c50493cc..45796014 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() @@ -216,13 +216,14 @@ def setup_website(basedir: Path, config: Configuration, conn: Connection) -> Non LOG.info('Creating website directory.') basedir.mkdir() + assert config.project_dir is not None template = dedent(f"""\