Skip to content

Commit a5486c1

Browse files
committed
the backend route returns 2 fields: metadata and data. The metadata is related to the pagination, and the data is the actual list of files. We want to get the list of files here only, or else other parts of the code will break.
1 parent 8015028 commit a5486c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyclowder/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def get_file_list(connector, host, key, datasetid):
128128
datasetid -- the dataset to get filelist of
129129
"""
130130
client = ClowderClient(host=host, key=key)
131-
file_list = datasets.get_file_list(connector, client, datasetid)
131+
file_list = datasets.get_file_list(connector, client, datasetid)['data']
132132
return file_list
133133

134134

0 commit comments

Comments
 (0)