Skip to content

Commit

Permalink
use datasource to query all names in validation and delete print
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Oct 29, 2024
1 parent 7bc4c87 commit 732d66d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions omero_search_engine/api/v1/resources/resource_analyser.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,6 @@ def get_the_results(
es_index, query
) # .search(index=es_index, body=query)
hits = results_["hits"]["hits"]
print("===>>> Hist %s" % hits)

if len(hits) > 0:
for hit in hits:
if len(hits) > 0:
Expand Down
2 changes: 1 addition & 1 deletion omero_search_engine/validation/results_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ def check_number_images_sql_containers_using_ids(data_source):

# conn = search_omero_app.config["database_connector"]
conn = search_omero_app.config.database_connectors[data_source]
all_names = get_resource_names("all")
all_names = get_resource_names(resource="all", data_source=json.dumps(data_source))
for resource in all_names:
search_omero_app.logger.info(
"######################## Checking %s ########################\n" % resource
Expand Down

0 comments on commit 732d66d

Please sign in to comment.