]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tokenizer/factory.py
Merge pull request #2305 from lonvia/tokenizer
[nominatim.git] / nominatim / tokenizer / factory.py
index 5f03ba582fad9955b2990ffb307e4bb710d518b4..e0c06293ff56e22b9d90938bb5af923b0e279bdb 100644 (file)
@@ -54,8 +54,7 @@ def create_tokenizer(config, init_db=True, module_name=None):
     tokenizer_module = _import_tokenizer(module_name)
 
     tokenizer = tokenizer_module.create(config.get_libpq_dsn(), basedir)
-    if init_db:
-        tokenizer.init_new_db(config)
+    tokenizer.init_new_db(config, init_db=init_db)
 
     with connect(config.get_libpq_dsn()) as conn:
         properties.set_property(conn, 'tokenizer', module_name)