diff --git a/erpnext/patches/v14_0/delete_orphaned_asset_movement_item_records.py b/erpnext/patches/v14_0/delete_orphaned_asset_movement_item_records.py index dff04c09458..a1d7dc9b3d4 100644 --- a/erpnext/patches/v14_0/delete_orphaned_asset_movement_item_records.py +++ b/erpnext/patches/v14_0/delete_orphaned_asset_movement_item_records.py @@ -1,7 +1,11 @@ import frappe + def execute(): - frappe.db.sql(""" - DELETE FROM `tabAsset Movement Item` - WHERE parent NOT IN (SELECT name FROM `tabAsset Movement`) - """) \ No newline at end of file + # nosemgrep + frappe.db.sql( + """ + DELETE FROM `tabAsset Movement Item` + WHERE parent NOT IN (SELECT name FROM `tabAsset Movement`) + """ + )