From 49c6041d798f6f4ae7bb11410098ccaf77ca0ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20L=C3=B3pez-Doriga?= Date: Fri, 30 Jun 2023 16:47:20 +0200 Subject: [PATCH] bug data not in permissions fixed --- beacon/response/build_response.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beacon/response/build_response.py b/beacon/response/build_response.py index 5b8922d..34d5818 100644 --- a/beacon/response/build_response.py +++ b/beacon/response/build_response.py @@ -139,6 +139,8 @@ def build_beacon_resultset_response_by_dataset(data, elif doc['id'] in biosample_list['individualIds']: dataset_id = dataset_dict['dataset'] response_dict[dataset_id].append(doc) + else: + data.remove(doc) except Exception: pass