parent
66545b23c6
commit
456d2d1fe0
1 changed files with 6 additions and 0 deletions
|
|
@ -119,10 +119,16 @@ class Comparoob(ReplApplication):
|
|||
|
||||
self.change_path([u'prices'])
|
||||
self.start_format()
|
||||
products = []
|
||||
for backend, price in self.do('iter_prices', product):
|
||||
products.append(price)
|
||||
for price in sorted(products, key=self._get_price):
|
||||
self.cached_format(price)
|
||||
self.flush()
|
||||
|
||||
def _get_price(self, price):
|
||||
return price.cost
|
||||
|
||||
def complete_info(self, text, line, *ignored):
|
||||
args = line.split(' ')
|
||||
if len(args) == 2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue