Do not recalc fits on tab switch (#1105)

* Do not recalc fits if they are already calculated. Fits that are projected onto other fits recursively set their victims to `calculated=False` so that the victim will re calculate when it loads again.

* Reset boosted fits when calculating a fit that is boosting others. Also, remove semicolon due to habit :x

* Develop a `__resetDependantCalc()` which will reset any fits that are immediately affected by the current fits calculation.
This commit is contained in:
Ryan Holmes
2017-04-11 23:40:40 -04:00
committed by GitHub
parent ebda1349cf
commit 114246bf1e
2 changed files with 33 additions and 4 deletions

View File

@@ -206,7 +206,9 @@ class Fit(object):
fit.damagePattern = self.pattern
eos.db.commit()
self.recalc(fit, withBoosters=True)
if not fit.calculated:
self.recalc(fit, withBoosters=True)
def getFit(self, fitID, projected=False, basic=False):
"""