From c571fdc5e6429e34251ebb759ee1df37276d359e Mon Sep 17 00:00:00 2001 From: blitzmann Date: Mon, 13 Jul 2015 19:29:23 -0400 Subject: [PATCH] Fit fit alterations with self projections --- eos/saveddata/fit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eos/saveddata/fit.py b/eos/saveddata/fit.py index b7f7a4f2f..e22360de6 100644 --- a/eos/saveddata/fit.py +++ b/eos/saveddata/fit.py @@ -428,10 +428,10 @@ class Fit(object): shadow = True self = copy.deepcopy(self) logger.debug("Handling self projection - making shadow copy of fit. %s => %s", projectionInfo.source_fit, self) - # we rollback because when we copy a fit, flush() is called to - # properly handle projection updates. However, we do not want to - # save this fit to the database, so we can immediately rollback - eos.db.saveddata_session.rollback() + # we delete the fit because when we copy a fit, flush() is + # called to properly handle projection updates. However, we do + # not want to save this fit to the database, so simply remove it + eos.db.saveddata_session.delete(self) refreshBoosts = False if withBoosters is True: