Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Mar 26, 2024
1 parent b70cba8 commit 1e05716
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Products/ZCatalog/Catalog.py
Expand Up @@ -587,8 +587,9 @@ def _search_index(self, cr, index_id, query, rs):

return rs

def search(self, query,
sort_index=None, reverse=False, limit=None, merge=True, rids=False):
def search(
self, query, sort_index=None, reverse=False, limit=None,
merge=True, rids=False):
"""Iterate through the indexes, applying the query to each one. If
merge is true then return a lazy result set (sorted if appropriate)
otherwise return the raw (possibly scored) results for later merging.
Expand Down Expand Up @@ -1085,7 +1086,8 @@ def searchResults(self, query=None, _merge=True, rids=False, **kw):
# be nice and keep the old API intact for single sort_order
reverse = reverse[0]
# Perform searches with indexes and sort_index
return self.search(query, sort_indexes, reverse, sort_limit, _merge, rids)
return self.search(
query, sort_indexes, reverse, sort_limit, _merge, rids)

__call__ = searchResults

Expand Down

0 comments on commit 1e05716

Please sign in to comment.