no -1 items
This commit is contained in:
parent
578cfc7799
commit
2841b65ab4
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ def parse_query(data, user):
|
||||||
conditions = {'query': data['clips']['query']}
|
conditions = {'query': data['clips']['query']}
|
||||||
query['clip_qs'] = Clip.objects.find(conditions, user).order_by('start')
|
query['clip_qs'] = Clip.objects.find(conditions, user).order_by('start')
|
||||||
query['clip_filter'] = models.Clip.objects.filter_annotations(conditions, user)
|
query['clip_filter'] = models.Clip.objects.filter_annotations(conditions, user)
|
||||||
query['clip_items'] = data['clips'].get('items', 5)
|
query['clip_items'] = max(data['clips'].get('items', 5), 0)
|
||||||
query['clip_keys'] = data['clips'].get('keys')
|
query['clip_keys'] = data['clips'].get('keys')
|
||||||
if not query['clip_keys']:
|
if not query['clip_keys']:
|
||||||
query['clip_keys'] = ['id', 'in', 'out', 'annotations']
|
query['clip_keys'] = ['id', 'in', 'out', 'annotations']
|
||||||
|
|
Loading…
Reference in a new issue