mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
chore: resolved linter check with #nosemgrep
(cherry picked from commit 8c8e25214c)
This commit is contained in:
@@ -238,6 +238,7 @@ def get_assets_for_grouped_by_category(filters):
|
|||||||
finance_book_filter += " and ifnull(gle.finance_book, '')=%(finance_book)s"
|
finance_book_filter += " and ifnull(gle.finance_book, '')=%(finance_book)s"
|
||||||
condition += " and exists (select 1 from `tabAsset Depreciation Schedule` ads where ads.asset = a.name and ads.finance_book = %(finance_book)s)"
|
condition += " and exists (select 1 from `tabAsset Depreciation Schedule` ads where ads.asset = a.name and ads.finance_book = %(finance_book)s)"
|
||||||
|
|
||||||
|
# nosemgrep
|
||||||
return frappe.db.sql(
|
return frappe.db.sql(
|
||||||
f"""
|
f"""
|
||||||
SELECT results.asset_category,
|
SELECT results.asset_category,
|
||||||
@@ -306,6 +307,7 @@ def get_assets_for_grouped_by_category(filters):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# nosemgrep
|
||||||
def get_assets_for_grouped_by_asset(filters):
|
def get_assets_for_grouped_by_asset(filters):
|
||||||
condition = ""
|
condition = ""
|
||||||
if filters.get("asset"):
|
if filters.get("asset"):
|
||||||
|
|||||||
Reference in New Issue
Block a user