diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-10 20:16:14 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-10 20:16:14 +0200 |
commit | c880a3b8e048b4f9fea5413f09d3745d5b37609f (patch) | |
tree | c19fe4efd71e2e8bd286bbaf551cb0ffe7172f6c /module/FileDatabase.py | |
parent | workaround (diff) | |
download | pyload-c880a3b8e048b4f9fea5413f09d3745d5b37609f.tar.xz |
several fixes
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r-- | module/FileDatabase.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py index 5f1a903a4..80613db30 100644 --- a/module/FileDatabase.py +++ b/module/FileDatabase.py @@ -895,9 +895,9 @@ class FileDatabaseBackend(Thread): @queue def getUnfinished(self, pid): - """return list of ids with pyfiles in package not finished or processed""" + """return list of max length 3 ids with pyfiles in package not finished or processed""" - self.c.execute("SELECT id FROM links WHERE package=? AND status NOT IN (0, 13)", (str(pid),)) + self.c.execute("SELECT id FROM links WHERE package=? AND status NOT IN (0, 13) LIMIT 3", (str(pid),)) return [r[0] for r in self.c] |