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