chore: resolved linter check with #nosemgrep

(cherry picked from commit 8c8e25214c)
This commit is contained in:
Khushi Rawat
2024-09-13 14:45:29 +05:30
committed by Mergify
parent 78c68397d9
commit 1e89c007ed

View File

@@ -238,6 +238,7 @@ def get_assets_for_grouped_by_category(filters):
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)"
# nosemgrep
return frappe.db.sql(
f"""
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):
condition = ""
if filters.get("asset"):