X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a0f5613a23167752c97dd17fc42cd1e4e97cf4eb..109af0ef1c55421a166fd2d45586d04fe7f6f969:/nominatim/clicmd/refresh.py?ds=inline diff --git a/nominatim/clicmd/refresh.py b/nominatim/clicmd/refresh.py index e7d7d7ba..82a61f54 100644 --- a/nominatim/clicmd/refresh.py +++ b/nominatim/clicmd/refresh.py @@ -75,10 +75,9 @@ class UpdateRefresh: self._get_tokenizer(args.config).update_statistics() if args.address_levels: - cfg = Path(args.config.ADDRESS_LEVEL_CONFIG) - LOG.warning('Updating address levels from %s', cfg) + LOG.warning('Updating address levels') with connect(args.config.get_libpq_dsn()) as conn: - refresh.load_address_levels_from_file(conn, cfg) + refresh.load_address_levels_from_config(conn, args.config) if args.functions: LOG.warning('Create functions')