diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-16 02:22:03 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-16 02:22:03 +0100 |
| commit | 6e96d6198f5a7726e135ebae5228646ca8a22f2e (patch) | |
| tree | 738cc489c22cf8b839808380290400bcc396b25f /cli/app/utils | |
| parent | ad434493fe0203e632d7e7abeae0ce339d0a26bb (diff) | |
less crazy iterations... and sorting
Diffstat (limited to 'cli/app/utils')
| -rw-r--r-- | cli/app/utils/cortex_utils.py | 2 |
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""" |
