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

Method handleMg

service/market.py:997–1004  ·  view source on GitHub ↗
(marketGroup, path=())

Source from the content-addressed store, hash-verified

995 items = set()
996
997 def handleMg(marketGroup, path=()):
998 marketGroup = self.getMarketGroup(marketGroup, eager=("items", "items.metaGroup", "children"))
999 path = path + (marketGroup.name,)
1000 print(' > '.join(path))
1001 for item in self.getItemsByMarketGroup(marketGroup):
1002 items.add(item.ID)
1003 for mgc in self.getMarketGroupChildren(marketGroup):
1004 handleMg(mgc, path=path)
1005
1006 for mg in self.ROOT_MARKET_GROUPS:
1007 handleMg(mg)

Callers

nothing calls this directly

Calls 3

getMarketGroupMethod · 0.95
getItemsByMarketGroupMethod · 0.95

Tested by

no test coverage detected