summaryrefslogtreecommitdiff
path: root/cli/app/utils
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-01-16 02:22:03 +0100
committerJules Laplace <julescarbon@gmail.com>2020-01-16 02:22:03 +0100
commit6e96d6198f5a7726e135ebae5228646ca8a22f2e (patch)
tree738cc489c22cf8b839808380290400bcc396b25f /cli/app/utils
parentad434493fe0203e632d7e7abeae0ce339d0a26bb (diff)
less crazy iterations... and sorting
Diffstat (limited to 'cli/app/utils')
-rw-r--r--cli/app/utils/cortex_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/app/utils/cortex_utils.py b/cli/app/utils/cortex_utils.py
index 1413f9a..26878fd 100644
--- a/cli/app/utils/cortex_utils.py
+++ b/cli/app/utils/cortex_utils.py
@@ -51,7 +51,7 @@ def find_unprocessed_files(files, reprocess=False):
dataset = fn.split('-')[0]
if dataset not in datasets or reprocess == True:
unprocessed_files.append(file)
- return unprocessed_files
+ return sorted(unprocessed_files, key=lambda x: x['name'])
def fetch_json(url, **kwargs):
"""HTTP GET some JSON"""