summaryrefslogtreecommitdiff
path: root/cli/app/utils/cortex_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/app/utils/cortex_utils.py')
-rw-r--r--cli/app/utils/cortex_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/app/utils/cortex_utils.py b/cli/app/utils/cortex_utils.py
index 01b4bc9..5e1e659 100644
--- a/cli/app/utils/cortex_utils.py
+++ b/cli/app/utils/cortex_utils.py
@@ -27,7 +27,7 @@ def download_cortex_files(opt_folder_id):
fetch_file(row['url'], fp_out_image)
return rows
-def find_unprocessed_files(files):
+def find_unprocessed_files(files, reprocess=False):
"""Find files that haven't been processed yet.
This is implied if no matching generated file is found.
"""
@@ -42,7 +42,7 @@ def find_unprocessed_files(files):
if file['generated'] == 0 and file['processed'] == 0 and file['datatype'] == 'image':
fn, ext = os.path.splitext(file['name'])
dataset = fn.split('-')[0]
- if dataset not in datasets:
+ if dataset not in datasets or reprocess == True:
unprocessed_files.append(file)
return unprocessed_files