summaryrefslogtreecommitdiffstats
path: root/module/database
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-14 17:27:59 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-12-14 17:27:59 +0100
commit72e06ea42a02d68627839017f124cfd883623e77 (patch)
treeb5e2cad30c5fe484a1dee86d59fe2298934577d9 /module/database
parentcp65001 is broken (diff)
downloadpyload-72e06ea42a02d68627839017f124cfd883623e77.tar.xz
pyLoad 0.4.9
Diffstat (limited to 'module/database')
-rw-r--r--module/database/FileDatabase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/database/FileDatabase.py b/module/database/FileDatabase.py
index 90e6ee758..a4f94e9a3 100644
--- a/module/database/FileDatabase.py
+++ b/module/database/FileDatabase.py
@@ -850,7 +850,7 @@ class FileMethods():
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) OR l.plugin IN %s) AND l.status IN (2,3,6,14) ORDER BY p.packageorder ASC, l.linkorder ASC LIMIT 5" % (cmd, pre)
+ 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) OR l.plugin IN %s) AND l.status IN (2,3,14) ORDER BY p.packageorder ASC, l.linkorder ASC LIMIT 5" % (cmd, pre)
self.c.execute(cmd) # very bad!
@@ -859,7 +859,7 @@ class FileMethods():
@style.queue
def getPluginJob(self, plugins):
"""returns pyfile ids with suited plugins"""
- cmd = "SELECT l.id FROM links as l INNER JOIN packages as p ON l.package=p.id WHERE l.plugin IN %s AND l.status IN (2,3,6,14) ORDER BY p.packageorder ASC, l.linkorder ASC LIMIT 5" % plugins
+ cmd = "SELECT l.id FROM links as l INNER JOIN packages as p ON l.package=p.id WHERE l.plugin IN %s AND l.status IN (2,3,14) ORDER BY p.packageorder ASC, l.linkorder ASC LIMIT 5" % plugins
self.c.execute(cmd) # very bad!