From 0cfb8b29221f76a53baffdc459a94778584147a6 Mon Sep 17 00:00:00 2001 From: khaledk2 Date: Tue, 17 Dec 2024 09:27:16 +0000 Subject: [PATCH] restore orginal searcch for organism --- .../api/v1/resources/resource_analyser.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/omero_search_engine/api/v1/resources/resource_analyser.py b/omero_search_engine/api/v1/resources/resource_analyser.py index 207789d..f1914ff 100644 --- a/omero_search_engine/api/v1/resources/resource_analyser.py +++ b/omero_search_engine/api/v1/resources/resource_analyser.py @@ -340,12 +340,12 @@ def prepare_search_results(results, size=0): # please see (https://github.com/ome/omero_search_engine/issues/45) # # This will be checked later. - # if ( - # resource == "image" - # and res["Attribute"] - # and res["Attribute"].lower() == "organism" - # ): - # continue + if ( + resource == "image" + and res["Attribute"] + and res["Attribute"].lower() == "organism" + ): + continue row = {} returned_results.append(row) row["data_source"] = res["data_source"]