Add commands for booster and command fits
This commit is contained in:
@@ -138,7 +138,7 @@ es_Fit._Fit__projectedFits = association_proxy(
|
||||
creator=lambda sourceID, source_fit: ProjectedFit(sourceID, source_fit)
|
||||
)
|
||||
|
||||
es_Fit._Fit__commandFits = association_proxy(
|
||||
es_Fit.commandFitDict = association_proxy(
|
||||
"boostedOf", # look at the boostedOf association...
|
||||
"booster_fit", # .. and return the booster fit
|
||||
creator=lambda boosterID, booster_fit: CommandFit(boosterID, booster_fit)
|
||||
|
||||
@@ -262,7 +262,7 @@ class Fit(object):
|
||||
|
||||
@property
|
||||
def commandFits(self):
|
||||
return [fit for fit in list(self.__commandFits.values()) if not fit.isInvalid]
|
||||
return [fit for fit in list(self.commandFitDict.values()) if not fit.isInvalid]
|
||||
|
||||
def getProjectionInfo(self, fitID):
|
||||
return self.projectedOnto.get(fitID, None)
|
||||
@@ -1605,7 +1605,7 @@ class Fit(object):
|
||||
eos.db.saveddata_session.refresh(fit)
|
||||
|
||||
for fit in self.commandFits:
|
||||
copy_ship.__commandFits[fit.ID] = fit
|
||||
copy_ship.commandFitDict[fit.ID] = fit
|
||||
forceUpdateSavedata(fit)
|
||||
copyCommandInfo = fit.getCommandInfo(copy_ship.ID)
|
||||
originalCommandInfo = fit.getCommandInfo(self.ID)
|
||||
|
||||
Reference in New Issue
Block a user