fix: Sider and Patch tests

This commit is contained in:
marination
2021-06-02 13:24:06 +05:30
parent b0d7e32018
commit ea30ce4c51
4 changed files with 24 additions and 21 deletions

View File

@@ -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