(self, priceMap, system, fetchTimeout)
| 42 | group = 'tranquility' |
| 43 | |
| 44 | def __init__(self, priceMap, system, fetchTimeout): |
| 45 | # Try selected system first |
| 46 | self.fetchPrices(priceMap, max(2 * fetchTimeout / 3, 2), system) |
| 47 | # If price was not available - try globally |
| 48 | if priceMap: |
| 49 | self.fetchPrices(priceMap, max(fetchTimeout / 3, 2)) |
| 50 | |
| 51 | @staticmethod |
| 52 | def fetchPrices(priceMap, fetchTimeout, system=None): |
nothing calls this directly
no test coverage detected