]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/indexer/indexer.py
Merge pull request #2143 from lonvia/integrate-indexer-into-nominatim-tool
[nominatim.git] / nominatim / indexer / indexer.py
index d86303c4d018a3a91667414e0c36c1b7db40a93f..094d127987bb5d7c6b88f007d83c2e1481aba9e2 100644 (file)
@@ -124,6 +124,13 @@ class Indexer:
         else:
             self.index(RankRunner(maxrank))
 
+    def update_status_table(self):
+        """ Update the status in the status table to 'indexed'.
+        """
+        with self.conn.cursor() as cur:
+            cur.execute('UPDATE import_status SET indexed = true')
+        self.conn.commit()
+
     def index(self, obj, batch=1):
         """ Index a single rank or table. `obj` describes the SQL to use
             for indexing. `batch` describes the number of objects that