(stuff, priceObj)
| 32 | |
| 33 | |
| 34 | def formatPrice(stuff, priceObj): |
| 35 | textItems = [] |
| 36 | if priceObj.price: |
| 37 | mult = 1 |
| 38 | if isinstance(stuff, (Drone, Fighter, Cargo)): |
| 39 | mult = stuff.amount |
| 40 | textItems.append(formatAmount(priceObj.price * mult, 3, 3, 9, currency=True)) |
| 41 | if priceObj.status in (PriceStatus.fetchFail, PriceStatus.fetchTimeout): |
| 42 | textItems.append("(!)") |
| 43 | return " ".join(textItems) |
| 44 | |
| 45 | |
| 46 | class Price(ViewColumn): |
no test coverage detected