diff options
author | 2012-10-09 22:09:16 +0200 | |
---|---|---|
committer | 2012-10-09 22:09:16 +0200 | |
commit | 49c4088ceb02da735d549014aaa9cba8c729ba54 (patch) | |
tree | 9ae70f02f4c548b7e7d2409eef89505cbd1924db /module/FileManager.py | |
parent | added nodejs as usuable js engine (diff) | |
download | pyload-49c4088ceb02da735d549014aaa9cba8c729ba54.tar.xz |
modified Api: filter downloads by state
Diffstat (limited to 'module/FileManager.py')
-rw-r--r-- | module/FileManager.py | 4 |
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(): |