From 42301ce34a80b1cf01b0eef3bdea0b6a16a034e0 Mon Sep 17 00:00:00 2001 From: olivier Date: Fri, 25 Oct 2024 17:56:48 +0100 Subject: [PATCH] pass keep_eid_index to subfunction --- one/api.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/one/api.py b/one/api.py index d09c4cad..21ab8273 100644 --- a/one/api.py +++ b/one/api.py @@ -1839,10 +1839,13 @@ def list_datasets( collection=collection, filename=filename, revision=revision, qc=qc, ignore_qc_not_set=ignore_qc_not_set, default_revisions_only=default_revisions_only) if (query_type or self.mode) != 'remote': - return super().list_datasets(eid, details=details, query_type=query_type, **filters) + return super().list_datasets(eid, details=details, keep_eid_index=keep_eid_index, + query_type=query_type, **filters) elif not eid: warnings.warn('Unable to list all remote datasets') - return super().list_datasets(eid, details=details, query_type=query_type, **filters) + return super().list_datasets( + eid, details=details, keep_eid_index=keep_eid_index, + query_type=query_type, **filters) eid = self.to_eid(eid) # Ensure we have a UUID str list if not eid: return self._cache['datasets'].iloc[0:0] if details else [] # Return empty