summaryrefslogtreecommitdiffstats
path: root/module/file_list.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/file_list.py')
-rw-r--r--module/file_list.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/module/file_list.py b/module/file_list.py
index 2cdda99c4..01a5924b3 100644
--- a/module/file_list.py
+++ b/module/file_list.py
@@ -126,10 +126,7 @@ class File_List(object):
def getAllFiles(self):
- files = []
- for pypack in self.data["queue"] + self.data["packages"]:
- files += pypack.files
- return files
+ return map(attrgetter("files"), self.data["queue"] + self.data["packages"])
def countDownloads(self):
""" simply return len of all files in all packages(which have no type) in queue and collector"""