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

Function getFitsWithModules

eos/db/saveddata/queries.py:266–278  ·  view source on GitHub ↗

Get all the fits that have typeIDs fitted to them

(typeIDs, eager=None)

Source from the content-addressed store, hash-verified

264
265
266def getFitsWithModules(typeIDs, eager=None):
267 """
268 Get all the fits that have typeIDs fitted to them
269 """
270
271 if not hasattr(typeIDs, "__iter__"):
272 typeIDs = (typeIDs,)
273
274 eager = processEager(eager)
275 with sd_lock:
276 fits = removeInvalid(saveddata_session.query(Fit).join(Module).options(*eager).filter(Module.itemID.in_(typeIDs)).all())
277
278 return fits
279
280
281def countAllFits():

Callers

nothing calls this directly

Calls 2

processEagerFunction · 0.90
removeInvalidFunction · 0.85

Tested by

no test coverage detected