mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
fix: autofixes by semgrep
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user