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

Method getCollector

module/Api.py:561–570  ·  view source on GitHub ↗

same as `getQueue` for collector. :return: list of `PackageInfo`

(self)

Source from the content-addressed store, hash-verified

559
560 @permission(PERMS.LIST)
561 def getCollector(self):
562 """same as `getQueue` for collector.
563
564 :return: list of `PackageInfo`
565 """
566 return [PackageData(pack["id"], pack["name"], pack["folder"], pack["site"],
567 pack["password"], pack["queue"], pack["order"],
568 pack["linksdone"], pack["sizedone"], pack["sizetotal"],
569 pack["linkstotal"])
570 for pack in self.core.files.getInfoData(Destination.Collector).itervalues()]
571
572 @permission(PERMS.LIST)
573 def getCollectorData(self):

Callers

nothing calls this directly

Calls 3

itervaluesMethod · 0.80
getInfoDataMethod · 0.80
PackageDataClass · 0.50

Tested by

no test coverage detected