MCPcopy
hub / github.com/pyload/pyload / queuecount

Method queuecount

module/database/FileDatabase.py:584–587  ·  view source on GitHub ↗

number of files in queue not finished yet

(self, queue)

Source from the content-addressed store, hash-verified

582
583 @style.queue
584 def queuecount(self, queue):
585 """ number of files in queue not finished yet"""
586 self.c.execute("SELECT COUNT(*) FROM links as l INNER JOIN packages as p ON l.package=p.id WHERE p.queue=? AND l.status NOT IN (0,4)", (queue, ))
587 return self.c.fetchone()[0]
588
589 @style.queue
590 def processcount(self, queue, fid):

Callers 1

getQueueCountMethod · 0.80

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected