Get market group by its ID
(identity, *args, **kwargs)
| 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""" |
no outgoing calls
no test coverage detected