(replacementsCheaper)
| 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) |
nothing calls this directly
no test coverage detected