mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
fix: Sider and Patch tests
This commit is contained in:
@@ -70,13 +70,14 @@ def get_category_records(categories):
|
||||
if frappe.get_meta(doctype, cached=True).get_field("image"):
|
||||
fields += ["image"]
|
||||
|
||||
categorical_data[category] = frappe.db.sql(f"""
|
||||
Select
|
||||
{",".join(fields)}
|
||||
from
|
||||
`tab{doctype}`""",
|
||||
as_dict=1
|
||||
)
|
||||
categorical_data[category] = frappe.db.sql(
|
||||
f"""
|
||||
Select
|
||||
{",".join(fields)}
|
||||
from
|
||||
`tab{doctype}`
|
||||
""",
|
||||
as_dict=1)
|
||||
|
||||
return categorical_data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user