Files
dss.api/spa/management/commands/deletefailed.py
2016-09-23 00:21:02 +01:00

11 lines
321 B
Python

from django.core.management.base import NoArgsCommand
from spa.models import Mix
class Command(NoArgsCommand):
def handle(self, *args, **options):
candidates = Mix.objects.filter(waveform_generated=False)
for mix in candidates:
print("Deleting: %s" % mix.title)
mix.delete()