From 035ae73b44c3efefd6f9421c8c4cd212ec108bda Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Sun, 2 Jan 2011 11:38:42 +0100 Subject: [PATCH] Fix a bug where fits that changed the amount of slots wouldn't get filled up correctly --- service/fit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/fit.py b/service/fit.py index b53c153fc..a2c62d783 100644 --- a/service/fit.py +++ b/service/fit.py @@ -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)