MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / exportCargo

Function exportCargo

service/port/eft.py:236–240  ·  view source on GitHub ↗
(cargos)

Source from the content-addressed store, hash-verified

234
235
236def exportCargo(cargos):
237 cargoLines = []
238 for cargo in sorted(cargos, key=lambda c: (c.item.group.category.name, c.item.group.name, c.item.typeName)):
239 cargoLines.append('{} x{}'.format(cargo.item.typeName, cargo.amount))
240 return '\n'.join(cargoLines)
241
242
243def importEft(lines):

Callers 1

exportEftFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected