MCPcopy Index your code
hub / github.com/pyload/pyload / getPluginJob

Method getPluginJob

module/database/FileDatabase.py:858–864  ·  view source on GitHub ↗

returns pyfile ids with suited plugins

(self, plugins)

Source from the content-addressed store, hash-verified

856
857 @style.queue
858 def getPluginJob(self, plugins):
859 """returns pyfile ids with suited plugins"""
860 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
861
862 self.c.execute(cmd) # very bad!
863
864 return [x[0] for x in self.c]
865
866 @style.queue
867 def getUnfinished(self, pid):

Callers 1

getDecryptJobMethod · 0.80

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected