Rework fix for projection, so that it does not recalculate projected fits too early

This commit is contained in:
DarkPhoenix
2020-04-16 22:25:10 +03:00
parent 1a897c0419
commit 1758e4f320

View File

@@ -342,10 +342,7 @@ class Fit:
inited = getattr(fit, "inited", None)
if inited is None or inited is False:
if projected:
if not fit.calculated:
self.recalc(fit)
else:
if not projected:
for fitP in fit.projectedFits:
self.getFit(fitP.ID, projected=True)
self.recalc(fit)
@@ -357,8 +354,8 @@ class Fit:
if not mod.isEmpty:
mod.fits(fit)
# Check that the states of all modules are valid
self.checkStates(fit, None)
# Check that the states of all modules are valid
self.checkStates(fit, None)
eos.db.commit()
fit.inited = True