forked from 0x2620/pandora
default values for ssaturation/brightness
This commit is contained in:
parent
1f4d6e546f
commit
c99bec21a8
1 changed files with 3 additions and 0 deletions
|
@ -572,6 +572,9 @@ class Item(models.Model):
|
||||||
s.size = 0
|
s.size = 0
|
||||||
|
|
||||||
s.color = int(sum(self.data.get('color', [])))
|
s.color = int(sum(self.data.get('color', [])))
|
||||||
|
s.saturation = 0 #FIXME
|
||||||
|
s.brightness = 0 #FIXME
|
||||||
|
|
||||||
s.cuts = len(self.data.get('cuts', []))
|
s.cuts = len(self.data.get('cuts', []))
|
||||||
if s.duration:
|
if s.duration:
|
||||||
s.cutsperminute = s.cuts / (s.duration/60)
|
s.cutsperminute = s.cuts / (s.duration/60)
|
||||||
|
|
Loading…
Reference in a new issue