fix getEdit

This commit is contained in:
j 2013-07-15 13:47:30 +00:00
parent d62460e5fe
commit 64f58f4496

View file

@ -7,6 +7,7 @@ import os
import shutil import shutil
from glob import glob from glob import glob
import subprocess import subprocess
from urllib import quote
import ox import ox
from django.conf import settings from django.conf import settings
@ -338,7 +339,8 @@ class Clip(models.Model):
'index': self.index 'index': self.index
} }
if self.annotation: if self.annotation:
data['item'], data['annotation'] = self.annotation.public_id data['annotation'] = self.annotation.public_id
data['item'] = self.item.itemId
data['in'] = self.annotation.start data['in'] = self.annotation.start
data['out'] = self.annotation.end data['out'] = self.annotation.end
data['parts'] = self.annotation.item.json['parts'] data['parts'] = self.annotation.item.json['parts']