summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r--module/FileDatabase.py4
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]