mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
fix: (Linter) Write queries using QB/ORM and other minor lines for semgrep to skip
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user