summaryrefslogtreecommitdiffstats
path: root/module/FileManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-10-09 22:09:16 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-10-09 22:09:16 +0200
commit49c4088ceb02da735d549014aaa9cba8c729ba54 (patch)
tree9ae70f02f4c548b7e7d2409eef89505cbd1924db /module/FileManager.py
parentadded nodejs as usuable js engine (diff)
downloadpyload-49c4088ceb02da735d549014aaa9cba8c729ba54.tar.xz
modified Api: filter downloads by state
Diffstat (limited to 'module/FileManager.py')
-rw-r--r--module/FileManager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/FileManager.py b/module/FileManager.py
index 60fa9dbb3..cf4989f99 100644
--- a/module/FileManager.py
+++ b/module/FileManager.py
@@ -175,7 +175,7 @@ class FileManager:
return self.db.getFileInfo(fid)
@lock
- def getTree(self, pid, full, unfinished):
+ def getTree(self, pid, full, state):
""" return a TreeCollection and fill the info data of containing packages.
optional filter only unfnished files
"""
@@ -185,7 +185,7 @@ class FileManager:
root = pid if not full else None
packs = self.db.getAllPackages(root)
- files = self.db.getAllFiles(package=root, unfinished=unfinished)
+ files = self.db.getAllFiles(package=root, state=state)
# updating from cache
for fid, f in self.files.iteritems():