Skip to content

Commit

Permalink
Merge pull request frappe#28574 from akhilnarang/change-filter-type
Browse files Browse the repository at this point in the history
refactor: change filter from tuple to dict
  • Loading branch information
akhilnarang authored Nov 26, 2024
2 parents 75ed8a8 + a7aa0de commit b72bc3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/search/website_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b72bc3a

Please sign in to comment.