From 08b8bd986a0060c2e204ac42552db9edb9b3f759 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 27 Jun 2014 11:32:39 +0200 Subject: [PATCH] only show stats for selected files --- pandora/item/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index e4ceef58..9e1f8752 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -276,7 +276,7 @@ Positions else: # otherwise stats items = query['qs'] - files = File.objects.filter(item__in=items).filter(size__gt=0) + files = File.objects.filter(item__in=items).filter(selected=True).filter(size__gt=0) r = files.aggregate( Sum('duration'), Sum('pixels'),