Ankush Menat
a3ea985348
refactor: Use db.set_single_value
( #35668 )
...
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
```
2023-06-13 17:30:38 +05:30
..
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-05-02 15:04:26 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2021-11-05 11:16:29 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2023-06-13 17:30:38 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2023-06-13 17:30:38 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2023-06-13 17:30:38 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2021-11-05 11:16:29 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2023-06-13 17:30:38 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-04-06 14:20:39 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2022-03-28 18:52:46 +05:30
2021-11-05 11:16:29 +05:30