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

Function formatCheaperExportCb

service/port/multibuy.py:57–62  ·  view source on GitHub ↗
(replacementsCheaper)

Source from the content-addressed store, hash-verified

55 if options[PortMultiBuyOptions.OPTIMIZE_PRICES]:
56
57 def formatCheaperExportCb(replacementsCheaper):
58 updatedAmounts = {}
59 for item, itemAmount in itemAmounts.items():
60 _addItem(updatedAmounts, replacementsCheaper.get(item, item), itemAmount)
61 string = _prepareString(fit.ship.item, updatedAmounts)
62 callback(string)
63
64 priceSvc = sPrc.getInstance()
65 priceSvc.findCheaperReplacements(itemAmounts, formatCheaperExportCb)

Callers

nothing calls this directly

Calls 4

_addItemFunction · 0.85
_prepareStringFunction · 0.85
itemsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected