MCPcopy
hub / github.com/pyload/pyload / getUnfinished

Method getUnfinished

module/database/FileDatabase.py:867–871  ·  view source on GitHub ↗

return list of max length 3 ids with pyfiles in package not finished or processed

(self, pid)

Source from the content-addressed store, hash-verified

865
866 @style.queue
867 def getUnfinished(self, pid):
868 """return list of max length 3 ids with pyfiles in package not finished or processed"""
869
870 self.c.execute("SELECT id FROM links WHERE package=? AND status NOT IN (0, 4, 13) LIMIT 3", (str(pid),))
871 return [r[0] for r in self.c]
872
873 @style.queue
874 def deleteFinished(self):

Callers 1

checkPackageFinishedMethod · 0.80

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected