fix: console import progress off-by-one (#24777)

* fix: importer console progress off-by-one

* fix: improve progress message

* chore: typo

---------

Co-authored-by: Robert Duncan <robir@puter.local>
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
This commit is contained in:
Robert Duncan 2024-02-06 01:48:06 -08:00 committed by GitHub
parent 064d97cafe
commit d6b126ac6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,8 +149,8 @@ class Importer:
if self.console:
update_progress_bar(
f"Importing {total_payload_count} records",
current_index,
f"Importing {self.doctype}: {total_payload_count} records",
current_index - 1,
total_payload_count,
)
elif total_payload_count > 5: