From 714325071fd526b653266a52057177fa541764c2 Mon Sep 17 00:00:00 2001 From: marination Date: Wed, 23 Feb 2022 00:15:39 +0530 Subject: [PATCH] fix: Remove accidental `as_dict` in frappe.db.get_all --- erpnext/www/shop-by-category/index.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/erpnext/www/shop-by-category/index.py b/erpnext/www/shop-by-category/index.py index 394621272b9..09f97ba5ef7 100644 --- a/erpnext/www/shop-by-category/index.py +++ b/erpnext/www/shop-by-category/index.py @@ -62,8 +62,7 @@ def get_category_records(categories): "parent_item_group": "All Item Groups", "show_in_website": 1 }, - fields=["name", "parent_item_group", "is_group", "image", "route"], - as_dict=True + fields=["name", "parent_item_group", "is_group", "image", "route"] ) else: doctype = frappe.unscrub(category) @@ -71,7 +70,7 @@ def get_category_records(categories): if frappe.get_meta(doctype, cached=True).get_field("image"): fields += ["image"] - categorical_data[category] = frappe.db.get_all(doctype, fields=fields, as_dict=True) + categorical_data[category] = frappe.db.get_all(doctype, fields=fields) return categorical_data