a3ea985348
I just applied semgrep autofix. Untested completed, review before merging. ```yaml - id: frappe-set-value-semantics patterns: - pattern-either: - pattern: frappe.db.set_value($DOCTYPE, None, $...AFTER) - pattern: frappe.db.set_value($DOCTYPE, $DOCTYPE, $...AFTER) fix: frappe.db.set_single_value($DOCTYPE, $...AFTER) message: | If $DOCTYPE is a single doctype then using `frappe.db.set_value` is discouraged for setting values in DB. Use db.set_single_value for single doctype instead. languages: [python] severity: ERROR ``` |
||
---|---|---|
.. | ||
buying_settings | ||
purchase_order | ||
purchase_order_item | ||
purchase_order_item_supplied | ||
purchase_receipt_item_supplied | ||
request_for_quotation | ||
request_for_quotation_item | ||
request_for_quotation_supplier | ||
supplier | ||
supplier_quotation | ||
supplier_quotation_item | ||
supplier_scorecard | ||
supplier_scorecard_criteria | ||
supplier_scorecard_period | ||
supplier_scorecard_scoring_criteria | ||
supplier_scorecard_scoring_standing | ||
supplier_scorecard_scoring_variable | ||
supplier_scorecard_standing | ||
supplier_scorecard_variable | ||
__init__.py |