always include empty annotations
This commit is contained in:
parent
3aadc0f513
commit
b8b91592b5
1 changed files with 4 additions and 3 deletions
|
@ -124,12 +124,13 @@ def findClips(request, data):
|
|||
values.append('layer')
|
||||
if query['filter']:
|
||||
qs = qs.filter(query['filter'])
|
||||
for i in response['data']['items']:
|
||||
if not key in i:
|
||||
i[key] = []
|
||||
for a in qs.values(*values):
|
||||
public_id = clip_public_id(a)
|
||||
for i in response['data']['items']:
|
||||
if i['id'] == public_id:
|
||||
if not key in i:
|
||||
i[key] = []
|
||||
l = {
|
||||
'id': a['public_id'],
|
||||
'value': a['value'],
|
||||
|
|
Loading…
Reference in a new issue