Commit e85ca8c7 authored by fred's avatar fred

commands: display tracks creation progress in verbose mode

parent 971914fd
......@@ -33,8 +33,11 @@ class Command(BaseCommand):
tranche_slug_mapping[tranche_key] = Nonstop.objects.get(slug=tranche_value)
except Nonstop.DoesNotExist:
continue
for nonstopfile in NonstopFile.objects.filter(**kwargs):
count = NonstopFile.objects.filter(**kwargs).count()
for i, nonstopfile in enumerate(NonstopFile.objects.filter(**kwargs)):
filepath = nonstopfile.filepath.replace(REMOTE_BASE_PATH, LOCAL_BASE_PATH)
if self.verbose:
print(i, count, filepath)
short_filepath = filepath[len(LOCAL_BASE_PATH):]
if short_filepath.startswith('SPOTS'):
continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment