Make modification of mutated stats undoable
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user