Compare commits
No commits in common. "c1c7fc27d353274412ac0c4fcb84477d66579ad2" and "ecd88fe8a248505ad80ff2926287e65afe612bb6" have entirely different histories.
c1c7fc27d3
...
ecd88fe8a2
2 changed files with 1 additions and 6 deletions
|
@ -59,7 +59,7 @@ class Command(BaseCommand):
|
|||
src = source.data.path
|
||||
target = os.path.join(prefix, 'voice_over', batch, '%s.wav' % fragment_id)
|
||||
os.makedirs(os.path.dirname(target), exist_ok=True)
|
||||
if os.path.islink(target):
|
||||
if os.path.exists(target):
|
||||
os.unlink(target)
|
||||
os.symlink(src, target)
|
||||
voice_over[fragment_id][batch] = {
|
||||
|
|
5
utils.py
5
utils.py
|
@ -19,11 +19,6 @@ def upgrade_originals():
|
|||
def remove_deselected_files():
|
||||
il = itemlist.models.List.objects.get(name='New Originals')
|
||||
for i in il.items.all():
|
||||
changed = False
|
||||
for f in i.files.filter(selected=False):
|
||||
f.data.delete()
|
||||
f.delete()
|
||||
changed = True
|
||||
if changed:
|
||||
i.save()
|
||||
|
||||
|
|
Loading…
Reference in a new issue