From 4ea26367886ebece65b8d296ea399798d7bedd85 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 21 Sep 2014 23:44:19 -0400 Subject: [PATCH] Fix #171 --- service/port.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/port.py b/service/port.py index 87c992143..117371736 100644 --- a/service/port.py +++ b/service/port.py @@ -632,12 +632,12 @@ class Port(object): # `or 1` because some charges (ie scripts) are without qty charges[mod.chargeID] += mod.numCharges or 1 - for mod in mods: - dna += ":{0};{1}".format(mod, mods[mod]) - for subsystem in sorted(subsystems, key=lambda mod: mod.getModifiedItemAttr("subSystemSlot")): dna += ":{0};1".format(subsystem.itemID) + for mod in mods: + dna += ":{0};{1}".format(mod, mods[mod]) + for drone in fit.drones: dna += ":{0};{1}".format(drone.itemID, drone.amount)