perf: lesser SQL queries and no validation

Co-authored-by: Sagar Vora <sagar@resilient.tech>
This commit is contained in:
Nabin Hait 2022-09-05 18:16:34 +05:30 committed by GitHub
parent 3abd00f3bb
commit 2a100abef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,4 +18,4 @@ def execute():
if strip_html(cstr(d.notes)).strip():
doc = frappe.get_doc(doctype, d.name)
doc.append("notes", {"note": d.notes, "added_by": d.modified_by, "added_on": d.modified})
doc.save()
doc.update_child_table("notes")