Skip to content

Commit 16dfc37

Browse files
committed
Removing directory form the list of files to download
1 parent 5a23f64 commit 16dfc37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qiita_pet/handlers/api_proxy/artifact.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ def artifact_summary_get_request(user_id, artifact_id):
123123
' Submit to VAMPS</a>')
124124

125125
files = [(f_id, "%s (%s)" % (basename(fp), f_type.replace('_', ' ')))
126-
for f_id, fp, f_type in artifact.filepaths]
126+
for f_id, fp, f_type in artifact.filepaths
127+
if f_type != 'directory']
127128

128129
# TODO: https://github.com/biocore/qiita/issues/1724 Remove this hardcoded
129130
# values to actually get the information from the database once it stores

0 commit comments

Comments
 (0)