fix: linter issues

This commit is contained in:
Anupam
2022-03-31 13:38:37 +05:30
parent af2d55f893
commit 444625a0ca

View File

@@ -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)