diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-01-07 18:18:38 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-01-07 18:18:38 +0100 |
| commit | 45855c051f415e56306f116a921eefe284139694 (patch) | |
| tree | cbdd76fe4f7f3da4f44e2044ba03184a913aa512 /cli/app/commands | |
| parent | 151ade996065ad02c2d96b723c94589066491d54 (diff) | |
fetch list of images and dedupe
Diffstat (limited to 'cli/app/commands')
| -rw-r--r-- | cli/app/commands/biggan/fetch.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cli/app/commands/biggan/fetch.py b/cli/app/commands/biggan/fetch.py index 94117c9..39f503c 100644 --- a/cli/app/commands/biggan/fetch.py +++ b/cli/app/commands/biggan/fetch.py @@ -1,6 +1,7 @@ import click +import os -from app.utils.cortex_utils import fetch_cortex_folder +from app.utils.cortex_utils import fetch_cortex_folder, find_unprocessed_files @click.command('') @click.option('-i', '--folder_id', 'opt_folder_id', type=int, @@ -10,4 +11,8 @@ def cli(ctx, opt_folder_id): """ Fetch JSON from the server """ - fetch_cortex_folder(opt_folder_id) + files = fetch_cortex_folder(opt_folder_id) + unprocessed_files = find_unprocessed_files(files) + print("Unprocessed files:") + for file in unprocessed_files: + print(" - {}".format(file['name'])) |
