Fix a bug where fits that changed the amount of slots wouldn't get

filled up correctly
This commit is contained in:
cncfanatics
2011-01-02 11:38:42 +01:00
parent 33f545fd42
commit 035ae73b44

View File

@@ -138,9 +138,9 @@ class Fit(object):
return None
fit = eos.db.getFit(fitID)
fit.calculateModifiedAttributes()
fit.fill()
eos.db.commit()
fit.calculateModifiedAttributes()
return fit
def searchFits(self, name):
@@ -216,7 +216,7 @@ class Fit(object):
if d is None or d.amountActive == d.amount or d.amount >= 5:
drone = d
break
if drone is None:
drone = eos.types.Drone(thing)
fit.projectedDrones.append(drone)