From 36eb7e4de788b8cedbe43029f3c47c3899075dfe Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 7 Jan 2020 22:31:55 +0100 Subject: getting latent search updates working... --- cli/app/utils/cortex_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/app/utils/cortex_utils.py') diff --git a/cli/app/utils/cortex_utils.py b/cli/app/utils/cortex_utils.py index 50e85a4..e4594ff 100644 --- a/cli/app/utils/cortex_utils.py +++ b/cli/app/utils/cortex_utils.py @@ -34,12 +34,12 @@ def find_unprocessed_files(files): datasets = {} unprocessed_files = [] for file in files: - if file['generated'] == 1 and file['type'] == 'image': + if file['generated'] == 1 and file['datatype'] == 'image': fn, ext = os.path.splitext(file['name']) dataset = fn.split('-')[0] datasets[dataset] = file['id'] for file in files: - if file['generated'] == 0 and file['processed'] == 0 and file['type'] == 'image': + 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: -- cgit v1.2.3-70-g09d2