remove subtitles.sort from 0xdb config, duration should always be >=0

This commit is contained in:
j 2012-02-15 22:55:17 +05:30
commit fbe8c9160b
3 changed files with 2 additions and 6 deletions

View file

@ -188,7 +188,7 @@ class Annotation(models.Model):
'saturation': 'clip__saturation',
'volume': 'clip__volume',
}.get(key, key))
j['duration'] = j['out'] - j['in']
j['duration'] = abs(j['out'] - j['in'])
if user:
j['editable'] = self.editable(user)