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

Method saveLevels

eos/saveddata/character.py:240–248  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

238 return len(self.dirtySkills) > 0
239
240 def saveLevels(self):
241 if self.ro:
242 raise ReadOnlyException("This character is read-only")
243
244 for skill in self.dirtySkills.copy():
245 skill.saveLevel()
246
247 self.dirtySkills = set()
248 eos.db.commit()
249
250 def revertLevels(self):
251 for skill in self.dirtySkills.copy():

Callers 1

saveCharacterMethod · 0.80

Calls 3

copyMethod · 0.80
saveLevelMethod · 0.80
ReadOnlyExceptionClass · 0.70

Tested by

no test coverage detected