MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / fetchItem

Function fetchItem

service/port/shared.py:29–44  ·  view source on GitHub ↗
(typeName, eagerCat=False)

Source from the content-addressed store, hash-verified

27
28
29def fetchItem(typeName, eagerCat=False):
30 sMkt = Market.getInstance()
31 eager = 'group.category' if eagerCat else None
32 try:
33 item = sMkt.getItem(typeName, eager=eager)
34 except (KeyboardInterrupt, SystemExit):
35 raise
36 except:
37 pyfalog.warning('service.port.shared: unable to fetch item "{}"'.format(typeName))
38 return None
39 if item is None:
40 return None
41 if sMkt.getPublicityByItem(item):
42 return item
43 else:
44 return None

Callers 6

parseMutantFunction · 0.90
fetchDynamicItemFunction · 0.90
_resolve_moduleFunction · 0.90
_importCreateFitFunction · 0.90
__init__Method · 0.90
__fetchChargeMethod · 0.90

Calls 3

getItemMethod · 0.80
getPublicityByItemMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected