From 83a4073616f9821a8ebf1df0e18e332490503eca Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 25 Feb 2010 16:32:17 +0100 Subject: webinterface improvments + server crash fix --- module/file_list.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'module/file_list.py') 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""" -- cgit v1.2.3