mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
chore: skip semgrep check for db.commit in BootStrapTestData (#53715)
This commit is contained in:
@@ -190,7 +190,7 @@ class BootStrapTestData:
|
|||||||
if not frappe.db.exists("Supplier Scorecard Standing", {"name": x.get("standing_name")}):
|
if not frappe.db.exists("Supplier Scorecard Standing", {"name": x.get("standing_name")}):
|
||||||
frappe.get_doc(x).insert()
|
frappe.get_doc(x).insert()
|
||||||
|
|
||||||
frappe.db.commit()
|
frappe.db.commit() # nosemgrep
|
||||||
|
|
||||||
def make_master_data(self):
|
def make_master_data(self):
|
||||||
self.make_fiscal_year()
|
self.make_fiscal_year()
|
||||||
@@ -244,7 +244,7 @@ class BootStrapTestData:
|
|||||||
self.update_stock_settings()
|
self.update_stock_settings()
|
||||||
self.update_system_settings()
|
self.update_system_settings()
|
||||||
|
|
||||||
frappe.db.commit()
|
frappe.db.commit() # nosemgrep
|
||||||
|
|
||||||
# custom doctype
|
# custom doctype
|
||||||
# DDL commands have implicit commit
|
# DDL commands have implicit commit
|
||||||
|
|||||||
Reference in New Issue
Block a user