Skip to content

Commit

Permalink
fix: console import progress off-by-one (#24777) (#24787)
Browse files Browse the repository at this point in the history
* 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>
(cherry picked from commit d6b126a)

Co-authored-by: Robert Duncan <74115869+robproject@users.noreply.github.com>
  • Loading branch information
mergify[bot] and robproject committed Feb 6, 2024
1 parent 6107338 commit e6ad6e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frappe/core/doctype/data_import/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ def import_data(self):

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:
Expand Down

0 comments on commit e6ad6e8

Please sign in to comment.