class Command(BaseCommand):
help = "Setup and run a boilerplate for testing"
+ cleanup = True
def processor_cleanup(self):
for processor in Processor.objects.all():
result.delete()
def handle(self, *args, **options):
- # NOT for production
- self.processor_cleanup()
- # self.result_cleanup()
-
presets = []
blacklist =['decoder', 'live', 'gain']
processors = timeside.core.processor.processors(timeside.core.api.IProcessor)
item, c = Item.objects.get_or_create(title=title, file=path)
if not item in selection.items.all():
selection.items.add(item)
+ if self.cleanup:
+ for result in item.results.all():
+ result.delete()
experience, c = Experience.objects.get_or_create(title='All')
for preset in presets: