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

Method getMarketGroup

service/market.py:577–586  ·  view source on GitHub ↗

Get market group by its ID

(identity, *args, **kwargs)

Source from the content-addressed store, hash-verified

575
576 @staticmethod
577 def getMarketGroup(identity, *args, **kwargs):
578 """Get market group by its ID"""
579 if isinstance(identity, types_MarketGroup):
580 marketGroup = identity
581 elif isinstance(identity, (int, float)):
582 id_ = int(identity)
583 marketGroup = eos.db.getMarketGroup(id_, *args, **kwargs)
584 else:
585 raise TypeError("Need MarketGroup object, integer or float as argument")
586 return marketGroup
587
588 def getGroupByItem(self, item):
589 """Get group by item"""

Callers 8

getMarketGroupByItemMethod · 0.95
getMarketRootMethod · 0.95
getImplantTreeMethod · 0.95
handleMgMethod · 0.95
getGroupDescriptionMethod · 0.80
selectionMadeMethod · 0.80
expandLookupMethod · 0.80
expandLookupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected