forked from 0x2620/pandora
dont add empty set for users with only ignored files
This commit is contained in:
parent
927e4c9ef6
commit
9ceeb34171
1 changed files with 2 additions and 1 deletions
|
@ -920,6 +920,7 @@ class Item(models.Model):
|
|||
sets = []
|
||||
for user in self.users_with_files():
|
||||
files = self.files.filter(instances__volume__user=user, instances__ignore=False)
|
||||
if files.count():
|
||||
sets.append(files)
|
||||
return sets
|
||||
|
||||
|
|
Loading…
Reference in a new issue