summaryrefslogtreecommitdiff
path: root/cli/app/commands
diff options
context:
space:
mode:
Diffstat (limited to 'cli/app/commands')
-rw-r--r--cli/app/commands/biggan/fetch.py9
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']))