only show stats for selected files

This commit is contained in:
j 2014-06-27 11:32:39 +02:00
parent bd763f0fa8
commit 08b8bd986a

View file

@ -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'),