mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
chore: resolved linter warnings with #nosemgrep
This commit is contained in:
@@ -134,6 +134,8 @@ def get_asset_details_for_grouped_by_category(filters):
|
|||||||
condition += " and name = %(asset)s"
|
condition += " and name = %(asset)s"
|
||||||
if filters.get("finance_book"):
|
if filters.get("finance_book"):
|
||||||
condition += " and exists (select 1 from `tabAsset Depreciation Schedule` ads where ads.asset = `tabAsset`.name and ads.finance_book = %(finance_book)s)"
|
condition += " and exists (select 1 from `tabAsset Depreciation Schedule` ads where ads.asset = `tabAsset`.name and ads.finance_book = %(finance_book)s)"
|
||||||
|
|
||||||
|
# nosemgrep
|
||||||
return frappe.db.sql(
|
return frappe.db.sql(
|
||||||
f"""
|
f"""
|
||||||
SELECT name,
|
SELECT name,
|
||||||
|
|||||||
Reference in New Issue
Block a user