fix find with clips
This commit is contained in:
parent
a1d9a08e36
commit
a960a7bd18
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,10 @@ class MetaClip:
|
||||||
for key in j.keys():
|
for key in j.keys():
|
||||||
if key not in keys:
|
if key not in keys:
|
||||||
del j[key]
|
del j[key]
|
||||||
|
#needed here to make item find with clips work
|
||||||
|
if 'annotations' in keys:
|
||||||
|
j['annotations'] = [a.json(keys=['value', 'id', 'layer'])
|
||||||
|
for a in self.annotations.filter(layer__in=self.layers)]
|
||||||
for key in keys:
|
for key in keys:
|
||||||
if key not in clip_keys and key not in j:
|
if key not in clip_keys and key not in j:
|
||||||
value = self.item.get(key)
|
value = self.item.get(key)
|
||||||
|
|
Loading…
Reference in a new issue