MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / getMarketRoot

Method getMarketRoot

service/market.py:857–868  ·  view source on GitHub ↗

Get the root of the market tree. Returns a list, where each element is a tuple containing: the ID, the name and the icon of the group

(self)

Source from the content-addressed store, hash-verified

855 return pub
856
857 def getMarketRoot(self):
858 """
859 Get the root of the market tree.
860 Returns a list, where each element is a tuple containing:
861 the ID, the name and the icon of the group
862 """
863 root = set()
864 for id_ in self.ROOT_MARKET_GROUPS:
865 mg = self.getMarketGroup(id_)
866 root.add(mg)
867
868 return root
869
870 def getShipRoot(self):
871 cat1 = self.getCategory("Ship")

Callers 1

__init__Method · 0.80

Calls 1

getMarketGroupMethod · 0.95

Tested by

no test coverage detected