refactor: avoid use of reserved keywords
This commit is contained in:
parent
e1feef71ff
commit
02e9c7bc75
@ -375,8 +375,8 @@ def get_data(
|
|||||||
all_count = frappe.get_list(
|
all_count = frappe.get_list(
|
||||||
doctype,
|
doctype,
|
||||||
filters=convert_filter_to_tuple(doctype, new_filters),
|
filters=convert_filter_to_tuple(doctype, new_filters),
|
||||||
fields="count(*) as count"
|
fields="count(*) as total_count"
|
||||||
)[0].count
|
)[0].total_count
|
||||||
|
|
||||||
kc["all_count"] = all_count
|
kc["all_count"] = all_count
|
||||||
kc["count"] = len(column_data)
|
kc["count"] = len(column_data)
|
||||||
@ -479,8 +479,8 @@ def get_data(
|
|||||||
"is_default": is_default,
|
"is_default": is_default,
|
||||||
"views": get_views(doctype),
|
"views": get_views(doctype),
|
||||||
"total_count": frappe.get_list(
|
"total_count": frappe.get_list(
|
||||||
doctype, filters=filters, fields="count(*) as count"
|
doctype, filters=filters, fields="count(*) as total_count"
|
||||||
)[0].count,
|
)[0].total_count,
|
||||||
"row_count": len(data),
|
"row_count": len(data),
|
||||||
"form_script": get_form_script(doctype),
|
"form_script": get_form_script(doctype),
|
||||||
"list_script": get_form_script(doctype, "List"),
|
"list_script": get_form_script(doctype, "List"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user