From c880a3b8e048b4f9fea5413f09d3745d5b37609f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 10 Oct 2010 20:16:14 +0200 Subject: several fixes --- module/FileDatabase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/FileDatabase.py') 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] -- cgit v1.2.3