summaryrefslogtreecommitdiff
path: root/cli/app/utils
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-01-07 22:31:55 +0100
committerJules Laplace <julescarbon@gmail.com>2020-01-07 22:31:55 +0100
commit36eb7e4de788b8cedbe43029f3c47c3899075dfe (patch)
treebae2153fc7d8894498377b884f4a0c58cb296087 /cli/app/utils
parent0ba235aca05004abd1f126cbab56dc9196629f15 (diff)
getting latent search updates working...
Diffstat (limited to 'cli/app/utils')
-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 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: