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

Function getItemAttrs

scripts/findNonMarket.py:196–209  ·  view source on GitHub ↗
(typeid)

Source from the content-addressed store, hash-verified

194 nonmarket.add(typeid)
195
196def getItemAttrs(typeid):
197 attrs = {}
198 cursor.execute(QUERY_TYPEID_ATTRIBS, (typeid,))
199 for row in cursor:
200 attrs[row[0]] = row[1]
201 cursor.execute(QUERY_TYPEID_BASEATTRIBS, (typeid,))
202 for row in cursor:
203 if row[0] is not None:
204 attrs["volume"] = row[0]
205 if row[1] is not None:
206 attrs["mass"] = row[1]
207 if row[2] is not None:
208 attrs["capacity"] = row[2]
209 return attrs
210
211def suggestMktGrp(typeid, mode="grp"):
212 typecat = globalmap_typeid_categoryid[typeid]

Callers 3

suggestMktGrpFunction · 0.85
suggestMetaGrpFunction · 0.85
findNonMarket.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected