mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 09:54:47 +00:00
refactor(project): type annotations for whitelisted methods
This commit is contained in:
@@ -9,7 +9,7 @@ import frappe
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
@frappe.validate_and_sanitize_search_inputs
|
@frappe.validate_and_sanitize_search_inputs
|
||||||
def query_task(doctype, txt, searchfield, start, page_len, filters):
|
def query_task(doctype: str, txt: str, searchfield: str, start: int, page_len: int, filters: dict):
|
||||||
from frappe.desk.reportview import build_match_conditions
|
from frappe.desk.reportview import build_match_conditions
|
||||||
|
|
||||||
search_string = "%%%s%%" % txt
|
search_string = "%%%s%%" % txt
|
||||||
|
|||||||
Reference in New Issue
Block a user