From 444625a0ca387a4752b867070e7a77c0a40bd863 Mon Sep 17 00:00:00 2001 From: Anupam Date: Thu, 31 Mar 2022 13:38:37 +0530 Subject: [PATCH] fix: linter issues --- erpnext/crm/doctype/contract/contract.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/erpnext/crm/doctype/contract/contract.py b/erpnext/crm/doctype/contract/contract.py index f186e87813e..dd4b86dd8b6 100644 --- a/erpnext/crm/doctype/contract/contract.py +++ b/erpnext/crm/doctype/contract/contract.py @@ -22,9 +22,12 @@ class Contract(Document): # If identical, append contract name with the next number in the iteration if frappe.db.exists("Contract", name): - count = frappe.db.count('Contract', filters={ - 'name': ('like', f"%{name}%"), - }) + count = frappe.db.count( + "Contract", + filters={ + "name": ("like", f"%{name}%"), + }, + ) name = f"{name} - {count}" self.name = _(name)