dont count empty annots
This commit is contained in:
parent
63f3063c95
commit
f6bfa26ae3
1 changed files with 1 additions and 1 deletions
|
@ -942,7 +942,7 @@ class Item(models.Model):
|
||||||
for key in ('hue', 'saturation', 'lightness'):
|
for key in ('hue', 'saturation', 'lightness'):
|
||||||
if key in self.data:
|
if key in self.data:
|
||||||
setattr(s, key, self.data.get(key, None))
|
setattr(s, key, self.data.get(key, None))
|
||||||
s.numberofannotations = self.annotations.count()
|
s.numberofannotations = self.annotations.exclude(value='').count()
|
||||||
s.numberofcuts = len(self.data.get('cuts', []))
|
s.numberofcuts = len(self.data.get('cuts', []))
|
||||||
s.numberofdocuments = self.documents.count()
|
s.numberofdocuments = self.documents.count()
|
||||||
if s.duration:
|
if s.duration:
|
||||||
|
|
Loading…
Reference in a new issue