mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-24 21:52:21 +01: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"
|
||||
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"):
|
||||
|
||||
Reference in New Issue
Block a user