From 6706b936144376c4e9ffaaebbf38825a8a1cade6 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 1 Aug 2019 17:00:02 +0200 Subject: [PATCH] minor performance improvements --- pandora/edit/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/edit/models.py b/pandora/edit/models.py index 2dfe2ee03..4ce6ab29f 100644 --- a/pandora/edit/models.py +++ b/pandora/edit/models.py @@ -248,7 +248,7 @@ class Edit(models.Model): clips_query = self.clip_query() if clips_query['conditions']: clips = clip.models.Clip.objects.find({'query': clips_query}, user) - items = [i['id'] for i in self.get_items(user).values('id')] + items = self.get_items(user).values('id') clips = clips.filter(item__in=items) else: clips = clip.models.Clip.objects.filter(id=None)