Get all the fits that have typeIDs fitted to them
(typeIDs, eager=None)
| 264 | |
| 265 | |
| 266 | def 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 | |
| 281 | def countAllFits(): |
nothing calls this directly
no test coverage detected