Make modification of mutated stats undoable

This commit is contained in:
DarkPhoenix
2019-05-02 00:18:17 +03:00
parent bbc8fd0f97
commit b3ef55cb7f
8 changed files with 151 additions and 15 deletions

View File

@@ -339,11 +339,11 @@ class Fit:
fit.notes))
return fits
def changeMutatedValue(self, mutator, value):
def changeMutatedValuePrelim(self, mutator, value):
pyfalog.debug("Changing mutated value for {} / {}: {} => {}".format(mutator.module, mutator.module.mutaplasmid, mutator.value, value))
mutator.value = value
eos.db.commit()
if mutator.value != value:
mutator.value = value
eos.db.flush()
return mutator.value
def changeChar(self, fitID, charID):