From a7aa0ded2d56b3039743df311984288b4598a892 Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Tue, 26 Nov 2024 11:38:15 +0530 Subject: [PATCH] refactor: change filter from tuple to dict While list/dict both work and technically so does a tuple, the original intention in #13831 seems to have been a dict. A trailing comma got left behind, which changed it to a tuple. Signed-off-by: Akhil Narang --- frappe/search/website_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/search/website_search.py b/frappe/search/website_search.py index efd5157b95..6a586c3b8c 100644 --- a/frappe/search/website_search.py +++ b/frappe/search/website_search.py @@ -94,7 +94,7 @@ def slugs_with_web_view(_items_to_index): for doctype in doctype_with_web_views: if doctype.is_published_field: fields = ["route", doctype.website_search_field] - filters = ({doctype.is_published_field: 1},) + filters = {doctype.is_published_field: 1} if doctype.website_search_field: docs = frappe.get_all(doctype.name, filters=filters, fields=[*fields, "title"]) for doc in docs: