forked from 0x2620/pandora
cast to boolean
This commit is contained in:
parent
cc56858377
commit
1d6d53e282
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class MetaClip(object):
|
|||
|
||||
self.findvalue = '\n'.join(list(filter(None, [a.findvalue for a in anns])))
|
||||
for l in [k['id'] for k in settings.CONFIG['layers']]:
|
||||
setattr(self, l, l in anns_by_layer and len(anns_by_layer[l]))
|
||||
setattr(self, l, l in anns_by_layer and bool(len(anns_by_layer[l])))
|
||||
models.Model.save(self, *args, **kwargs)
|
||||
|
||||
clip_keys = ('id', 'in', 'out', 'position', 'created', 'modified',
|
||||
|
|
Loading…
Reference in a new issue