From a149c7d7a07ae13bb69f91d29234115a8ea80215 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 1 Aug 2019 15:47:20 +0200 Subject: [PATCH] item sort is directly attached to clip --- pandora/clip/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pandora/clip/views.py b/pandora/clip/views.py index df2c9103..700a95a1 100644 --- a/pandora/clip/views.py +++ b/pandora/clip/views.py @@ -102,8 +102,6 @@ def findClips(request, data): subtitles = utils.get_by_key(layers, 'isSubtitles', True) layer_ids = [k['id'] for k in layers] keys = list(filter(lambda k: k not in layer_ids + ['annotations'], data['keys'])) - if list(filter(lambda k: k not in models.Clip.clip_keys, keys)): - qs = qs.select_related('item__sort') clips = {} response['data']['items'] = clip_jsons = []