From bd4a76e21145b2c7dd8ed5b05e53a3cbea9ccc7a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 2 Jul 2013 23:18:14 +0000 Subject: [PATCH] direct uploads are also valid sets --- pandora/item/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index 6a616fbd..db66e077 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -997,6 +997,10 @@ class Item(models.Model): files = self.files.filter(instances__volume__user=user, instances__ignore=False) if files.count(): sets.append(files) + if not sets: + files = self.files.filter(instances=None, available=True) + if files.count(): + sets.append(files) return sets def update_wanted(self):