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 ``` |
||
---|---|---|
.. | ||
tests | ||
__init__.py | ||
accounts_controller.py | ||
buying_controller.py | ||
item_variant.py | ||
print_settings.py | ||
queries.py | ||
sales_and_purchase_return.py | ||
selling_controller.py | ||
status_updater.py | ||
stock_controller.py | ||
subcontracting_controller.py | ||
taxes_and_totals.py | ||
trends.py | ||
website_list_for_contact.py |