From e454b64599f64ebe627cb2edad2fb332c6eb5907 Mon Sep 17 00:00:00 2001 From: mkaay Date: Thu, 12 Aug 2010 01:04:42 +0200 Subject: renaming fix, get job by priority --- module/FileDatabase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module') diff --git a/module/FileDatabase.py b/module/FileDatabase.py index 6798eb47f..d45763c05 100644 --- a/module/FileDatabase.py +++ b/module/FileDatabase.py @@ -790,7 +790,7 @@ class FileDatabaseBackend(Thread): cmd += ")" - cmd = "SELECT l.id FROM links as l INNER JOIN packages as p ON l.package=p.id WHERE p.queue=1 AND l.plugin NOT IN %s AND l.status IN (2,3,6,14) ORDER BY p.packageorder, l.linkorder LIMIT 5" % cmd + cmd = "SELECT l.id FROM links as l INNER JOIN packages as p ON l.package=p.id WHERE p.queue=1 AND l.plugin NOT IN %s AND l.status IN (2,3,6,14) ORDER BY p.priority, p.packageorder, l.linkorder LIMIT 5" % cmd self.c.execute(cmd) # very bad! -- cgit v1.2.3