summaryrefslogtreecommitdiffstats
path: root/module/web/pyload/views.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-23 15:56:02 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-23 15:56:02 +0100
commit46f12993515fa81a1280992a08d548fcabbf9a84 (patch)
tree393b7b7c204d0db08c3fa45ee6fc55943b84f542 /module/web/pyload/views.py
parentRemoved Prints in DLC (diff)
parentadded missing icons, final improvments (diff)
downloadpyload-46f12993515fa81a1280992a08d548fcabbf9a84.tar.xz
pyLoad 0.3
Diffstat (limited to 'module/web/pyload/views.py')
-rw-r--r--module/web/pyload/views.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index d72dca56c..ea9d5f1be 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -75,10 +75,7 @@ def home(request):
def queue(request):
queue = settings.PYLOAD.get_queue()
for pack in queue:
- children = []
- for child in settings.PYLOAD.get_package_files(pack["id"]):
- children.append(settings.PYLOAD.get_file_info(child))
- pack["children"] = children
+ pack["children"] = map(settings.PYLOAD.get_file_info, settings.PYLOAD.get_package_files(pack["id"]))
return render_to_response(join(settings.TEMPLATE, 'queue.html'), RequestContext(request, {'content': queue}, [status_proc]))