Skip to content

Commit

Permalink
chore: resolved failing check
Browse files Browse the repository at this point in the history
  • Loading branch information
khushi8112 committed Sep 13, 2024
1 parent 8c8e252 commit af52f0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ def get_assets_for_grouped_by_category(filters):
)


# nosemgrep
def get_assets_for_grouped_by_asset(filters):
condition = ""
if filters.get("asset"):
Expand All @@ -317,6 +316,7 @@ def get_assets_for_grouped_by_asset(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.name as asset,
Expand Down

0 comments on commit af52f0e

Please sign in to comment.