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

Method getQueue

module/Api.py:535–545  ·  view source on GitHub ↗

Returns info about queue and packages, **not** about files, see `getQueueData` \ or `getPackageData` instead. :return: list of `PackageInfo`

(self)

Source from the content-addressed store, hash-verified

533
534 @permission(PERMS.LIST)
535 def getQueue(self):
536 """Returns info about queue and packages, **not** about files, see `getQueueData` \
537 or `getPackageData` instead.
538
539 :return: list of `PackageInfo`
540 """
541 return [PackageData(pack["id"], pack["name"], pack["folder"], pack["site"],
542 pack["password"], pack["queue"], pack["order"],
543 pack["linksdone"], pack["sizedone"], pack["sizetotal"],
544 pack["linkstotal"])
545 for pack in self.core.files.getInfoData(Destination.Queue).itervalues()]
546
547 @permission(PERMS.LIST)
548 def getQueueData(self):

Callers

nothing calls this directly

Calls 3

itervaluesMethod · 0.80
getInfoDataMethod · 0.80
PackageDataClass · 0.50

Tested by

no test coverage detected