]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tools/check_database.py
mypy: fix new warnings due to external type updates
[nominatim.git] / nominatim / tools / check_database.py
index 7372a49fd215564623c9c47bd3df83001f6edfe8..80358f200edda55e51cc14fcb2ba6d4825b1a27e 100644 (file)
@@ -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))