refactor: remove redundant assignment of doctypes_to_be_ignored_list

This commit is contained in:
KerollesFathy
2025-12-12 20:38:02 +00:00
parent 45a7195abe
commit 0f7d89f4d1

View File

@@ -348,10 +348,9 @@ class TransactionDeletionRecord(Document):
self.db_set("error_log", None)
def get_doctypes_to_be_ignored_list(self):
singles_and_virtuals = frappe.get_all(
doctypes_to_be_ignored_list = frappe.get_all(
"DocType", or_filters=[["issingle", "=", 1], ["is_virtual", "=", 1]], pluck="name"
)
doctypes_to_be_ignored_list = singles_and_virtuals
for doctype in self.doctypes_to_be_ignored:
doctypes_to_be_ignored_list.append(doctype.doctype_name)