Fix issue that caused fits that were supposed to open in the background to calculate. Unfortunately this fix breaks the tab snapshot, will have to figure that out later

This commit is contained in:
blitzmann
2015-10-09 18:32:03 -04:00
parent f090cafa5c
commit a33ec89e87
3 changed files with 11 additions and 5 deletions

View File

@@ -224,14 +224,19 @@ class Fit(object):
eos.db.commit()
self.recalc(fit, withBoosters=True)
def getFit(self, fitID, projected = False):
def getFit(self, fitID, projected=False, basic=False):
''' Gets fit from database, and populates fleet data.
Projected is a recursion flag that is set to reduce recursions into projected fits
Basic is a flag to simply return the fit without any other processing
'''
if fitID is None:
return None
fit = eos.db.getFit(fitID)
if basic:
return fit
inited = getattr(fit, "inited", None)
if inited is None or inited is False: