Skip to content

Commit

Permalink
avoid search lookup in find_one call
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Jan 19, 2024
1 parent af81bd5 commit 9d2a2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superdesk/eve_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def find_one(self, endpoint_name, req, **lookup):
backend = self._backend(endpoint_name)
item = backend.find_one(endpoint_name, req=req, **lookup)
search_backend = self._lookup_backend(endpoint_name, fallback=True)
if search_backend:
if search_backend and app.config.get("BACKEND_FIND_ONE_SEARCH_TEST", False):
# set the parent for the parent child in elastic search
self._set_parent(endpoint_name, item, lookup)
item_search = search_backend.find_one(endpoint_name, req=req, **lookup)
Expand Down

0 comments on commit 9d2a2e3

Please sign in to comment.