X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3742fa2929619a4c54a50d3e79e0eeadb4d6ca6f..9659afbade47d1ec6d5359b2b21e1e874516ed80:/src/nominatim_db/clicmd/refresh.py?ds=inline diff --git a/src/nominatim_db/clicmd/refresh.py b/src/nominatim_db/clicmd/refresh.py index 363bad78..adc7ee65 100644 --- a/src/nominatim_db/clicmd/refresh.py +++ b/src/nominatim_db/clicmd/refresh.py @@ -11,6 +11,7 @@ from typing import Tuple, Optional import argparse import logging from pathlib import Path +import asyncio from ..config import Configuration from ..db.connection import connect, table_exists @@ -99,7 +100,7 @@ class UpdateRefresh: args.project_dir, tokenizer) indexer = Indexer(args.config.get_libpq_dsn(), tokenizer, args.threads or 1) - indexer.index_postcodes() + asyncio.run(indexer.index_postcodes()) else: LOG.error("The place table doesn't exist. " "Postcode updates on a frozen database is not possible.")