From 15ac9aca180941781a7192f7e70d9034cd20031d Mon Sep 17 00:00:00 2001 From: blitzmann Date: Thu, 12 Jun 2014 01:59:44 -0400 Subject: [PATCH] Use # charges instead of # shots when exporting loaded charges. Fixes #115 --- service/port.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/port.py b/service/port.py index 01f6bd501..bf0699eb3 100644 --- a/service/port.py +++ b/service/port.py @@ -627,7 +627,7 @@ class Port(object): if not mod.chargeID in charges: charges[mod.chargeID] = 0 # `or 1` because some charges (ie scripts) are without qty - charges[mod.chargeID] += mod.numShots or 1 + charges[mod.chargeID] += mod.numCharges or 1 for mod in mods: dna += ":{0};{1}".format(mod, mods[mod]) @@ -689,7 +689,7 @@ class Port(object): if not module.charge.name in charges: charges[module.charge.name] = 0 # `or 1` because some charges (ie scripts) are without qty - charges[module.charge.name] += module.numShots or 1 + charges[module.charge.name] += module.numCharges or 1 for drone in fit.drones: hardware = doc.createElement("hardware")