From f22120190d28241aac963df291de1db8bb04b7f1 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 28 Mar 2024 14:48:10 +0530 Subject: [PATCH] fix: Correct logic for comlete success --- frappe/core/doctype/data_import/importer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/core/doctype/data_import/importer.py b/frappe/core/doctype/data_import/importer.py index 8822f9132d..7aa89aed28 100644 --- a/frappe/core/doctype/data_import/importer.py +++ b/frappe/core/doctype/data_import/importer.py @@ -221,10 +221,10 @@ class Importer: else: failures.append(log) if len(failures) >= total_payload_count and len(successes) == 0: - status = "Error" + status = "Error" elif len(failures) > 0 and len(successes) > 0: status = "Partial Success" - elif len(len(successes) == total_payload_count): + elif len(successes) == total_payload_count: status = "Success" if self.console: