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

Method insert

eos/effectHandlerHelpers.py:345–356  ·  view source on GitHub ↗
(self, idx, proj)

Source from the content-addressed store, hash-verified

343 self.remove(proj)
344
345 def insert(self, idx, proj):
346 if proj.isInvalid:
347 # we must include it before we remove it. doing it this way ensures
348 # rows and relationships in database are removed as well
349 HandledList.insert(self, idx, proj)
350 self.remove(proj)
351 return
352 proj.projected = True
353 HandledList.insert(self, idx, proj)
354 # Remove non-projectable modules
355 if not proj.item.isType("projected") and not proj.isExclusiveSystemEffect:
356 self.remove(proj)
357
358 @property
359 def currentSystemEffect(self):

Callers

nothing calls this directly

Calls 3

insertMethod · 0.45
removeMethod · 0.45
isTypeMethod · 0.45

Tested by

no test coverage detected