Skip to content

Commit 8be5f30

Browse files
committed
avoid duplicate entry
1 parent a24f89a commit 8be5f30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xcube/webapi/datasets/context.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,9 @@ def get_dataset_configs_from_stores(
410410
"datasets may cause a long setup time of the server."
411411
)
412412
data_store = data_store_pool.get_store(store_instance_id)
413-
store_dataset_ids = itertools.chain(
414-
data_store.get_data_ids(data_type=DATASET_TYPE),
415-
data_store.get_data_ids(data_type=MULTI_LEVEL_DATASET_TYPE),
413+
store_dataset_ids = set(
414+
data_store.list_data_ids(data_type=DATASET_TYPE) +
415+
data_store.list_data_ids(data_type=MULTI_LEVEL_DATASET_TYPE)
416416
)
417417
for store_dataset_id in store_dataset_ids:
418418
if fnmatch.fnmatch(store_dataset_id, dataset_id_pattern):

0 commit comments

Comments
 (0)