Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 27, 2024
1 parent 2980506 commit baddc02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omero_search_engine/api/v1/resources/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1038,10 +1038,10 @@ def search_index_using_search_after(
value=json.dumps([data_s]),
)
# query["query"]["bool"]["must"][0] = json.loads(main_dd)
if "must"in query2["query"]["bool"]:
if "must" in query2["query"]["bool"]:
query2["query"]["bool"]["must"].append(json.loads(main_dd))
else:
query2["query"]["bool"]["must"]=[json.loads(main_dd)]
query2["query"]["bool"]["must"] = [json.loads(main_dd)]
res = es.search(index=e_index, body=query2)
if len(res["hits"]["hits"]) == 0:
search_omero_app.logger.info("No result is found")
Expand Down

0 comments on commit baddc02

Please sign in to comment.