Skip to content

Commit

Permalink
pass keep_eid_index to subfunction
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Oct 25, 2024
1 parent 5f5cc9d commit 42301ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions one/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42301ce

Please sign in to comment.