X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/459ab3bbdcafec8707764896dcfeec5c3ed7454d..bc94318d8349404f7112a6214c782cfc1c290a64:/nominatim/tools/check_database.py diff --git a/nominatim/tools/check_database.py b/nominatim/tools/check_database.py index e5cefe4f..80358f20 100644 --- a/nominatim/tools/check_database.py +++ b/nominatim/tools/check_database.py @@ -163,7 +163,7 @@ def check_placex_table(conn: Connection, config: Configuration) -> CheckResult: return CheckState.FATAL, dict(config=config) -@_check(hint="""placex table has no data. Did the import finish sucessfully?""") +@_check(hint="""placex table has no data. Did the import finish successfully?""") def check_placex_size(conn: Connection, _: Configuration) -> CheckResult: """ Checking for placex content """ @@ -181,7 +181,7 @@ def check_tokenizer(_: Connection, config: Configuration) -> CheckResult: tokenizer = tokenizer_factory.get_tokenizer_for_db(config) except UsageError: return CheckState.FAIL, dict(msg="""\ - Cannot load tokenizer. Did the import finish sucessfully?""") + Cannot load tokenizer. Did the import finish successfully?""") result = tokenizer.check_database(config) @@ -268,7 +268,7 @@ def check_database_index_valid(conn: Connection, _: Configuration) -> CheckResul WHERE pg_index.indisvalid = false AND pg_index.indexrelid = pg_class.oid""") - broken = list(cur) + broken = [c[0] for c in cur] if broken: return CheckState.FAIL, dict(indexes='\n '.join(broken))