]> git.openstreetmap.org Git - nominatim.git/commitdiff
skip wikipedia table test on reverse-only installations
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 29 Apr 2022 12:12:55 +0000 (14:12 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 29 Apr 2022 12:12:55 +0000 (14:12 +0200)
Wikipedia importances are not imported on reverse-only imports.

nominatim/tools/check_database.py

index 14a8f0cb5fa5c22e5746282627d6db1f4342a494..7ac31271568382aedc011e6dc46d8c3b3e8bb57c 100644 (file)
@@ -194,6 +194,9 @@ def check_tokenizer(_, config):
 def check_existance_wikipedia(conn, _):
     """ Checking for wikipedia/wikidata data
     """
+    if not conn.table_exists('search_name'):
+        return CheckState.NOT_APPLICABLE
+
     with conn.cursor() as cur:
         cnt = cur.scalar('SELECT count(*) FROM wikipedia_article')