]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/clicmd/refresh.py
test for existance of country grid in cmake already
[nominatim.git] / nominatim / clicmd / refresh.py
index 4e2ad1dbe56aa108450cf3c4b1afa2523fce002a..8e69cacaf315fa8ab1c6c6a82bbfe0f2bea75efc 100644 (file)
@@ -51,13 +51,13 @@ class UpdateRefresh:
         if args.postcodes:
             LOG.warning("Update postcodes centroid")
             conn = connect(args.config.get_libpq_dsn())
-            refresh.update_postcodes(conn, args.data_dir)
+            refresh.update_postcodes(conn, args.sqllib_dir)
             conn.close()
 
         if args.word_counts:
             LOG.warning('Recompute frequency of full-word search terms')
             conn = connect(args.config.get_libpq_dsn())
-            refresh.recompute_word_counts(conn, args.data_dir)
+            refresh.recompute_word_counts(conn, args.sqllib_dir)
             conn.close()
 
         if args.address_levels:
@@ -70,7 +70,7 @@ class UpdateRefresh:
         if args.functions:
             LOG.warning('Create functions')
             conn = connect(args.config.get_libpq_dsn())
-            refresh.create_functions(conn, args.config, args.data_dir,
+            refresh.create_functions(conn, args.config, args.sqllib_dir,
                                      args.diffs, args.enable_debug_statements)
             conn.close()