From 19a09ec69960686ba0a7ed23700401f22c136cab Mon Sep 17 00:00:00 2001 From: Victor Rocheleau Date: Mon, 12 Feb 2024 15:46:26 +0000 Subject: [PATCH] fix: index check on search results --- bento_aggregation_service/search/dataset_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bento_aggregation_service/search/dataset_search.py b/bento_aggregation_service/search/dataset_search.py index fb18ddc..833df73 100644 --- a/bento_aggregation_service/search/dataset_search.py +++ b/bento_aggregation_service/search/dataset_search.py @@ -391,7 +391,7 @@ async def run_search_on_dataset( ) # Compute the intersection between the sets of results - results = dataset_linked_fields_results[0] + results = dataset_linked_fields_results[0] if len(dataset_linked_fields_results) > 0 else [] for r in dataset_linked_fields_results: results.intersection_update(r)