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

Method itemIDCallback

gui/builtinItemStatsViews/itemCompare.py:209–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207 @staticmethod
208 def TranslateValueUnit(value, unitName, unitDisplayName):
209 def itemIDCallback():
210 item = Market.getInstance().getItem(value)
211 return "%s (%d)" % (item.name, value) if item is not None else str(value)
212
213 def groupIDCallback():
214 group = Market.getInstance().getGroup(value)

Callers

nothing calls this directly

Calls 2

getItemMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected