From a86502842051854719e4cf5605ef100ace5a8f15 Mon Sep 17 00:00:00 2001 From: Ebag333 Date: Wed, 15 Feb 2017 15:42:46 -0800 Subject: [PATCH] Remove litter. --- service/fit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/fit.py b/service/fit.py index 409f2e932..2b87fefd3 100644 --- a/service/fit.py +++ b/service/fit.py @@ -731,8 +731,8 @@ class Fit(object): # If we have less than the total number of drones active, make them all active. Fixes #728 # This could be removed if we ever add an enhancement to make drone stacks partially active. - if getattr(d2, "amount", 0) > getattr(d2, "amountActive", 0): - d2.amountActive = getattr(d2, "amount", 0) + if d2.amount > d2.amountActive: + d2.amountActive = d2.amount eos.db.commit() self.recalc(fit)