]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/indexer/progress.py
Merge pull request #2957 from lonvia/reorganise-api-module
[nominatim.git] / nominatim / indexer / progress.py
index 177c262b702e19eec30c08383737670c1414ce74..33df37fbaec06df141462adafa14be012a95f043 100644 (file)
@@ -55,7 +55,7 @@ class ProgressLogger:
 
         self.next_info += int(places_per_sec) * self.log_interval
 
-    def done(self) -> None:
+    def done(self) -> int:
         """ Print final statistics about the progress.
         """
         rank_end_time = datetime.now()
@@ -70,3 +70,5 @@ class ProgressLogger:
         LOG.warning("Done %d/%d in %d @ %.3f per second - FINISHED %s\n",
                     self.done_places, self.total_places, int(diff_seconds),
                     places_per_sec, self.name)
+
+        return self.done_places