fix: (Linter) Write queries using QB/ORM and other minor lines for semgrep to skip

This commit is contained in:
marination
2022-02-02 12:58:31 +05:30
parent 780e29b42e
commit 4b62d2d7fe
13 changed files with 89 additions and 84 deletions

View File

@@ -29,7 +29,7 @@ def create_fiscal_year_and_company(args):
'domain': args.get('domains')[0]
}).insert()
def enable_shopping_cart(args):
def enable_shopping_cart(args): # nosemgrep
# Needs price_lists
frappe.get_doc({
"doctype": "E Commerce Settings",

View File

@@ -535,7 +535,7 @@ def create_bank_account(args):
# bank account same as a CoA entry
pass
def update_shopping_cart_settings(args):
def update_shopping_cart_settings(args): # nosemgrep
shopping_cart = frappe.get_doc("E Commerce Settings")
shopping_cart.update({
"enabled": 1,