fix: revert document_list return format
This commit is contained in:
parent
09ae9ad086
commit
11602c1e6b
1 changed files with 2 additions and 5 deletions
|
|
@ -97,11 +97,8 @@ def document_list(doctype: str):
|
|||
query = return_value
|
||||
|
||||
data = query.run(as_dict=True, debug=debug)
|
||||
|
||||
return {
|
||||
"result": data[:limit],
|
||||
"has_next_page": len(data) > limit,
|
||||
}
|
||||
frappe.response["has_next_page"] = len(data) > limit
|
||||
return data[:limit]
|
||||
|
||||
|
||||
def count(doctype: str) -> int:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue