Skip to content

Commit f39cd8b

Browse files
committed
fix 3222 via fp_type
1 parent 4df75ce commit f39cd8b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

qiita_db/util.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -958,17 +958,17 @@ def move_filepaths_to_upload_folder(study_id, filepaths):
958958

959959
path_builder = partial(join, uploads_fp)
960960

961-
# do not move these files back to upload folder.
962-
do_not_move = ['qtp-sequencing-validate-data.csv', 'feature-table.qza']
961+
# do not move these files-types back to upload folder.
962+
do_not_move = ['preprocessed_fasta', 'preprocessed_fastq',
963+
'preprocessed_demux', 'directory', 'log',
964+
'html_summary', 'tgz', 'html_summary_dir', 'qzv', 'qza']
963965

964966
# We can now go over and remove all the filepaths
965967
sql = """DELETE FROM qiita.filepath WHERE filepath_id = %s"""
966968
for x in filepaths:
967969
qdb.sql_connection.TRN.add(sql, [x['fp_id']])
968970

969-
if (x['fp_type'] in ('html_summary',
970-
'html_summary_dir') or
971-
basename(x['fp']) in do_not_move):
971+
if x['fp_type'] in do_not_move:
972972
_rm_files(qdb.sql_connection.TRN, x['fp'])
973973
continue
974974

0 commit comments

Comments
 (0)