fix: autofixes by semgrep

This commit is contained in:
Mihir Kandoi
2026-01-01 21:56:12 +05:30
parent 767bb534c0
commit ca568a01f5
41 changed files with 294 additions and 373 deletions

View File

@@ -30,4 +30,4 @@ def execute():
def insert_sales_partner_type(s):
if not frappe.db.exists("Sales Partner Type", s):
frappe.get_doc(dict(doctype="Sales Partner Type", sales_partner_type=s)).insert()
frappe.get_doc(doctype="Sales Partner Type", sales_partner_type=s).insert()

View File

@@ -30,15 +30,13 @@ def execute():
if task.subject:
replace_tasks = True
new_task = frappe.get_doc(
dict(
doctype="Task",
subject=task.subject,
start=task.start,
duration=task.duration,
task_weight=task.task_weight,
description=task.description,
is_template=1,
)
doctype="Task",
subject=task.subject,
start=task.start,
duration=task.duration,
task_weight=task.task_weight,
description=task.description,
is_template=1,
).insert()
new_tasks.append(new_task)