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

Method getItemsByGroup

service/market.py:746–756  ·  view source on GitHub ↗

Get items assigned to group

(self, group)

Source from the content-addressed store, hash-verified

744 return children
745
746 def getItemsByGroup(self, group):
747 """Get items assigned to group"""
748 # Return only public items; also, filter out items
749 # which were forcibly set to other groups
750 groupItems = set(group.items)
751 if hasattr(group, 'addItems'):
752 groupItems.update(group.addItems)
753 items = set([
754 item for item in groupItems
755 if self.getPublicityByItem(item) and self.getGroupByItem(item) == group])
756 return items
757
758 def getItemsByMarketGroup(self, mg, vars_=True):
759 """Get items in the given market group"""

Callers 3

getShipListMethod · 0.95
stage1Method · 0.80
getEffectBeaconsMethod · 0.80

Calls 3

getPublicityByItemMethod · 0.95
getGroupByItemMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected