From 9ceeb3417115031f46a10da4333a7c679f43d146 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 28 Jun 2012 14:59:08 +0200 Subject: [PATCH] dont add empty set for users with only ignored files --- pandora/item/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 4385388a4..dc0f7b461 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -920,7 +920,8 @@ class Item(models.Model): sets = [] for user in self.users_with_files(): files = self.files.filter(instances__volume__user=user, instances__ignore=False) - sets.append(files) + if files.count(): + sets.append(files) return sets def update_wanted(self):