Skip to content

Commit

Permalink
Patch in @querystring-search that avoid to search through all the sit…
Browse files Browse the repository at this point in the history
…e if there is an absolutePath criteria with non existing UID and b_size==1
  • Loading branch information
cekk committed Mar 18, 2024
1 parent 87c81be commit 1439e55
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ def cleanup_query(self, query, b_size):
operation = criteria.get("o", "")
if (
index == "path"
and operation == "plone.app.querystring.operation.string.absolutePath"
and operation # noqa
== "plone.app.querystring.operation.string.absolutePath"
):
criteria_value = criteria.get("v", "").split("::")
value = criteria_value[0]
Expand Down

0 comments on commit 1439e55

Please sign in to comment.