MCPcopy
hub / github.com/pyload/pyload / getQueueData

Method getQueueData

module/Api.py:548–558  ·  view source on GitHub ↗

Return complete data about everything in queue, this is very expensive use it sparely.\ See `getQueue` for alternative. :return: list of `PackageData`

(self)

Source from the content-addressed store, hash-verified

546
547 @permission(PERMS.LIST)
548 def getQueueData(self):
549 """Return complete data about everything in queue, this is very expensive use it sparely.\
550 See `getQueue` for alternative.
551
552 :return: list of `PackageData`
553 """
554 return [PackageData(pack["id"], pack["name"], pack["folder"], pack["site"],
555 pack["password"], pack["queue"], pack["order"],
556 pack["linksdone"], pack["sizedone"], pack["sizetotal"],
557 links=[self._convertPyFile(x) for x in pack["links"].itervalues()])
558 for pack in self.core.files.getCompleteData(Destination.Queue).itervalues()]
559
560 @permission(PERMS.LIST)
561 def getCollector(self):

Callers 1

processCommandMethod · 0.45

Calls 4

_convertPyFileMethod · 0.95
itervaluesMethod · 0.80
getCompleteDataMethod · 0.80
PackageDataClass · 0.50

Tested by

no test coverage detected