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

Method init

eos/saveddata/boosterSideEffect.py:40–50  ·  view source on GitHub ↗

Initialize from the database

(self)

Source from the content-addressed store, hash-verified

38
39 @reconstructor
40 def init(self):
41 """Initialize from the database"""
42 self.__effect = None
43
44 if self.effectID:
45 self.__effect = next((x for x in self.booster.item.effects.values() if x.ID == self.effectID), None)
46 if self.__effect is None:
47 pyfalog.error("Effect (id: {0}) does not exist", self.effectID)
48 return
49
50 self.build()
51
52 def build(self):
53 pass

Callers

nothing calls this directly

Calls 2

buildMethod · 0.95
valuesMethod · 0.80

Tested by

no test coverage detected