chore: resolved linter warnings with #nosemgrep

This commit is contained in:
Khushi Rawat
2024-08-30 00:30:47 +05:30
parent 3bb186736d
commit 957eabf53e

View File

@@ -1532,7 +1532,7 @@ def get_previous_sle_of_current_voucher(args, operator="<", exclude_current_vouc
operator = "<="
voucher_condition = f"and creation < '{creation}'"
sle = frappe.db.sql(
sle = frappe.db.sql( # nosemgrep
f"""
select *, posting_datetime as "timestamp"
from `tabStock Ledger Entry`
@@ -1629,6 +1629,7 @@ def get_stock_ledger_entries(
if extra_cond:
conditions += f"{extra_cond}"
# nosemgrep
return frappe.db.sql(
"""
select *, posting_datetime as "timestamp"