Skip to content

Commit

Permalink
Add typeIDs for cargo to EFS exports.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaruMaruOO committed May 22, 2019
1 parent 9a0dd6c commit e486319
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion service/port/efs.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,10 @@ def exportEfs(fit, typeNotFitFlag, callback):
defaultSpoolValue = 1
spoolOptions = SpoolOptions(SpoolType.SCALE, defaultSpoolValue, True)

cargoIDs = []
for cargo in fit.cargo:
cargoIDs.append(cargo.itemID)

def roundNumbers(data, digits):
if isinstance(data, str):
return
Expand Down Expand Up @@ -670,7 +674,7 @@ def roundNumbers(data, digits):
"droneControlRange": fitModAttr("droneControlRange"), "mass": fitModAttr("mass"),
"unpropedSpeed": propData["unpropedSpeed"], "unpropedSig": propData["unpropedSig"],
"usingMWD": propData["usingMWD"], "mwdPropSpeed": mwdPropSpeed, "projections": projections,
"modTypeIDs": modTypeIDs, "moduleNames": moduleNames,
"modTypeIDs": modTypeIDs, "moduleNames": moduleNames, "cargoItemIDs": cargoIDs,
"pyfaVersion": pyfaVersion, "efsExportVersion": EfsPort.version
}
# Recursively round any numbers in dicts to 6 decimal places.
Expand Down

0 comments on commit e486319

Please sign in to comment.