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 ``` |
||
---|---|---|
.. | ||
add_default_dispatch_notification_template.py | ||
add_expense_claim_default_account.py | ||
add_index_on_nestedset_doctypes.py | ||
add_item_group_defaults.py | ||
add_market_segments.py | ||
add_sales_stages.py | ||
check_buying_selling_in_currency_exchange.py | ||
create_default_success_action.py | ||
create_department_records_for_each_company.py | ||
hr_ux_cleanups.py | ||
make_asset_finance_book_against_old_entries.py | ||
make_italian_localization_fields.py | ||
make_job_card.py | ||
make_location_from_warehouse.py | ||
make_quality_inspection_template.py | ||
merge_land_unit_with_location.py | ||
move_item_defaults_to_child_table_for_multicompany.py | ||
rebuild_tree_for_company.py | ||
refactor_autoname_naming.py | ||
refactor_naming_series.py | ||
remove_barcodes_field_from_copy_fields_to_variants.py | ||
remove_modules_setup_page.py | ||
rename_asset_adjustment_doctype.py | ||
rename_bom_wo_fields.py | ||
rename_duplicate_item_code_values.py | ||
rename_members_with_naming_series.py | ||
rename_overproduction_percent_field.py | ||
rename_production_order_to_work_order.py | ||
rename_supplier_type_to_supplier_group.py | ||
renamed_from_to_fields_in_project.py | ||
set_department_for_doctypes.py | ||
set_update_field_and_value_in_workflow_state.py | ||
set_user_permissions_for_department.py | ||
uom_conversion_data.py | ||
update_account_type_in_party_type.py | ||
update_allow_transfer_for_manufacture.py | ||
update_backflush_subcontract_rm_based_on_bom.py | ||
update_brand_in_item_price.py | ||
update_delivery_trip_status.py | ||
update_department_lft_rgt.py | ||
update_sales_partner_type.py | ||
update_total_qty_field.py |