Compare commits

..

No commits in common. "c1c7fc27d353274412ac0c4fcb84477d66579ad2" and "ecd88fe8a248505ad80ff2926287e65afe612bb6" have entirely different histories.

2 changed files with 1 additions and 6 deletions

View file

@ -59,7 +59,7 @@ class Command(BaseCommand):
src = source.data.path src = source.data.path
target = os.path.join(prefix, 'voice_over', batch, '%s.wav' % fragment_id) target = os.path.join(prefix, 'voice_over', batch, '%s.wav' % fragment_id)
os.makedirs(os.path.dirname(target), exist_ok=True) os.makedirs(os.path.dirname(target), exist_ok=True)
if os.path.islink(target): if os.path.exists(target):
os.unlink(target) os.unlink(target)
os.symlink(src, target) os.symlink(src, target)
voice_over[fragment_id][batch] = { voice_over[fragment_id][batch] = {

View file

@ -19,11 +19,6 @@ def upgrade_originals():
def remove_deselected_files(): def remove_deselected_files():
il = itemlist.models.List.objects.get(name='New Originals') il = itemlist.models.List.objects.get(name='New Originals')
for i in il.items.all(): for i in il.items.all():
changed = False
for f in i.files.filter(selected=False): for f in i.files.filter(selected=False):
f.data.delete() f.data.delete()
f.delete() f.delete()
changed = True
if changed:
i.save()