forked from 0x2620/pandora
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')
|
values.append('layer')
|
||||||
if query['filter']:
|
if query['filter']:
|
||||||
qs = qs.filter(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):
|
for a in qs.values(*values):
|
||||||
public_id = clip_public_id(a)
|
public_id = clip_public_id(a)
|
||||||
for i in response['data']['items']:
|
for i in response['data']['items']:
|
||||||
if i['id'] == public_id:
|
if i['id'] == public_id:
|
||||||
if not key in i:
|
|
||||||
i[key] = []
|
|
||||||
l = {
|
l = {
|
||||||
'id': a['public_id'],
|
'id': a['public_id'],
|
||||||
'value': a['value'],
|
'value': a['value'],
|
||||||
|
|
Loading…
Reference in a new issue