fix clip index for newly added clips
This commit is contained in:
parent
5649892bbd
commit
be1589569e
1 changed files with 2 additions and 1 deletions
|
@ -106,8 +106,9 @@ class Edit(models.Model):
|
||||||
c = self.add_clip(data)
|
c = self.add_clip(data)
|
||||||
if c:
|
if c:
|
||||||
ids.insert(index, c.id)
|
ids.insert(index, c.id)
|
||||||
index += 1
|
|
||||||
added.append(c.json(user))
|
added.append(c.json(user))
|
||||||
|
added[-1]['index'] = index
|
||||||
|
index += 1
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
self.sort_clips(ids)
|
self.sort_clips(ids)
|
||||||
|
|
Loading…
Reference in a new issue