skip wikipedia table test on reverse-only installations

Wikipedia importances are not imported on reverse-only imports.
This commit is contained in:
Sarah Hoffmann
2022-04-29 14:12:55 +02:00
parent 8bcdba1a14
commit 3d58254462

View 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')